Projectiles should set their z to floor, not add it.

This commit is contained in:
MajorCooke 2016-01-22 11:47:41 -06:00
parent da6fe6cad6
commit 88f96950b5

View file

@ -2422,7 +2422,7 @@ void P_ZMovement (AActor *mo, fixed_t oldfloorz)
{ {
if ((mo->flags & MF_MISSILE) && !(mo->flags & MF_NOCLIP)) if ((mo->flags & MF_MISSILE) && !(mo->flags & MF_NOCLIP))
{ {
mo->AddZ(mo->floorz); mo->SetZ(mo->floorz);
if (mo->BounceFlags & BOUNCE_Floors) if (mo->BounceFlags & BOUNCE_Floors)
{ {
mo->FloorBounceMissile (mo->floorsector->floorplane); mo->FloorBounceMissile (mo->floorsector->floorplane);