mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- BOOM compatibility fix: Allow voodoo dolls to spawn inside narrow pits.
SVN r2641 (trunk)
This commit is contained in:
parent
c304b39ecc
commit
08a40b22be
1 changed files with 9 additions and 0 deletions
|
@ -503,6 +503,15 @@ void APlayerPawn::Tick()
|
|||
void APlayerPawn::PostBeginPlay()
|
||||
{
|
||||
SetupWeaponSlots();
|
||||
|
||||
// Voodoo dolls: restore original floorz/ceilingz logic
|
||||
if (player->mo != this)
|
||||
{
|
||||
dropoffz = floorz = Sector->floorplane.ZatPoint(x, y);
|
||||
ceilingz = Sector->ceilingplane.ZatPoint(x, y);
|
||||
P_FindFloorCeiling(this, true);
|
||||
z = floorz;
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
Loading…
Reference in a new issue