From f8d5430c06b3e0936e14acf0cdf491c4173e8d3b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 29 Jan 2016 11:11:10 +0100 Subject: [PATCH] - fixed: When changing 'noclip2' some minor lateral velocity should be set to ensure that all internal variables contain proper values. --- src/m_cheat.cpp | 1 + src/p_3dfloors.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index 3bab8f7e5..b6316f732 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -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: diff --git a/src/p_3dfloors.cpp b/src/p_3dfloors.cpp index 37ecaed27..b60c69e11 100644 --- a/src/p_3dfloors.cpp +++ b/src/p_3dfloors.cpp @@ -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