- Duke: Fix shootstuff() zvel calculation error following changes in badf536fef.

* Fixes #177.
This commit is contained in:
Mitchell Richters 2020-11-12 22:07:16 +11:00
parent 6b12514a29
commit 13839fc3e9

View file

@ -603,7 +603,7 @@ static void shootstuff(DDukeActor* actor, int p, int sx, int sy, int sz, int sa,
int j = findplayer(actor, &x); int j = findplayer(actor, &x);
// sa = getangle(ps[j].oposx-sx,ps[j].oposy-sy); // sa = getangle(ps[j].oposx-sx,ps[j].oposy-sy);
sa += 16 - (krand() & 31); sa += 16 - (krand() & 31);
zvel = (((ps[j].oposz - sz + (3 << 8))) * vel) / ldist(ps[p].GetActor(), actor); zvel = (((ps[j].oposz - sz + (3 << 8))) * vel) / ldist(ps[j].GetActor(), actor);
} }
int oldzvel = zvel; int oldzvel = zvel;