- Fixed spawn height of projectiles created by SpawnPlayerMissile.

This commit is contained in:
Player701 2019-01-05 17:41:31 +03:00 committed by drfrag
parent 30f55ccf7d
commit 99a5f86364

View file

@ -6713,7 +6713,7 @@ AActor *P_SpawnPlayerMissile (AActor *source, double x, double y, double z,
if (z != ONFLOORZ && z != ONCEILINGZ)
{
// Doom spawns missiles 4 units lower than hitscan attacks for players.
z += source->Center() - source->Floorclip + source->AttackOffset(4);
z += source->Center() - source->Floorclip + source->AttackOffset(-4);
// Do not fire beneath the floor.
if (z < source->floorz)
{