mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- Fixed spawn height of projectiles created by SpawnPlayerMissile.
This commit is contained in:
parent
30f55ccf7d
commit
99a5f86364
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue