- fixed: When changing 'noclip2' some minor lateral velocity should be set to ensure that all internal variables contain proper values.

This commit is contained in:
Christoph Oelckers 2016-01-29 11:11:10 +01:00
parent 94611588d5
commit f8d5430c06
2 changed files with 2 additions and 1 deletions

View file

@ -136,6 +136,7 @@ void cht_DoCheat (player_t *player, int cheat)
player->cheats &= ~CF_NOCLIP;
msg = GStrings("STSTR_NCOFF");
}
player->mo->velx = 1; // force some lateral movement so that internal variables are up to date
break;
case CHT_NOVELOCITY:

View file

@ -615,7 +615,7 @@ void P_Recalculate3DFloors(sector_t * sector)
newlight.flags = rover->flags;
lightlist.Push(newlight);
}
else //if (i==0)
else
{
fixed_t ff_bottom=rover->bottom.plane->ZatPoint(CenterSpot(sector));
if (ff_bottom<maxheight)