mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- 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:
parent
94611588d5
commit
f8d5430c06
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue