mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't thrust player if the UFO is dead
This commit is contained in:
parent
30adb8559e
commit
41ca397881
1 changed files with 9 additions and 1 deletions
10
src/p_map.c
10
src/p_map.c
|
|
@ -757,11 +757,19 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
|||
{
|
||||
if (tm.thing->type != MT_PLAYER)
|
||||
{
|
||||
return BMIT_CONTINUE;
|
||||
return BMIT_CONTINUE; // not a player
|
||||
}
|
||||
|
||||
if (thing->health <= 0)
|
||||
{
|
||||
return BMIT_CONTINUE; // dead
|
||||
}
|
||||
|
||||
if (tm.thing->z > thing->z + thing->height)
|
||||
{
|
||||
return BMIT_CONTINUE; // overhead
|
||||
}
|
||||
|
||||
P_SetObjectMomZ(tm.thing, FRACUNIT, true);
|
||||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue