From a1cd0401e4fa18f6419d446bbe992cf00fe06e49 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 31 Jan 2016 22:38:08 +0100 Subject: [PATCH] - fixed: noclip2 should only set some minimal velocity if the player has none. --- src/m_cheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index b6316f732..1d80f13f2 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -136,7 +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 + if (player->mo->velx == 0) player->mo->velx = 1; // force some lateral movement so that internal variables are up to date break; case CHT_NOVELOCITY: