footstep sound bug, nosway

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1415 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-11-11 10:18:10 +00:00
parent 30855c8ec8
commit a6c1801d54
5 changed files with 38 additions and 52 deletions
+4 -4
View File
@@ -389,7 +389,7 @@ void moveprojectiles(float time)
{
if(p.local)
addmsg(SV_EXPLODE, "ri3iv", lastmillis, p.gun, p.id,
hits.length(), hits.length()*sizeof(hitmsg)/sizeof(int), hits.getbuf());
hits.length(), hits.length()*sizeof(hitmsg)/sizeof(int), hits.getbuf());
projs.remove(i--);
}
else p.o = v;
@@ -535,7 +535,7 @@ void thrownade(playerent *d, bounceent *p)
thrownade(d, vel, p);
}
bounceent *new_nade(playerent *d, int millis = 0)
bounceent *newnade(playerent *d, int millis = 0)
{
bounceent *p = newbounceent();
p->owner = d;
@@ -592,7 +592,7 @@ void shootv(int gun, vec &from, vec &to, playerent *d, bool local, int nademilli
{
if(d!=player1)
{
bounceent *p = new_nade(d, nademillis);
bounceent *p = newnade(d, nademillis);
thrownade(d, to, p);
}
break;
@@ -746,7 +746,7 @@ void shoot(playerent *d, vec &targ)
{
if(!hasammo(d)) return;
d->mag[d->gunselect]--;
new_nade(d);
newnade(d);
updatelastaction(d);
d->gunwait[d->gunselect] = attackdelay(d->gunselect);
d->lastattackgun = d->gunselect;