Fixed player falling through narrow notch upon unmorphing

https://forum.zdoom.org/viewtopic.php?t=56230
This commit is contained in:
alexey.lysiuk 2017-05-02 17:22:50 +03:00
parent f73f42c4a6
commit 43fc5633af
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ bool P_UndoPlayerMorph (player_t *activator, player_t *player, int unmorphflag,
mo->Vel.X = mo->Vel.Y = 0;
player->Vel.Zero();
mo->Vel.Z = pmo->Vel.Z;
mo->floorz = pmo->floorz;
if (!(pmo->special2 & MF_JUSTHIT))
{
mo->renderflags &= ~RF_INVISIBLE;