Reset TERRAIN when respawning

Fixes damage floor TERRAIN applying for the entire
duration of lightsnake.
This commit is contained in:
James R 2023-03-19 22:40:43 -07:00
parent cd7d4f23c7
commit abc11fc16f

View file

@ -4032,6 +4032,7 @@ static void P_PlayerMobjThinker(mobj_t *mobj)
P_CheckPosition(mobj, mobj->x, mobj->y, NULL);
mobj->floorz = tm.floorz;
mobj->ceilingz = tm.ceilingz;
mobj->terrain = NULL;
goto animonly;
}