From fea95b8cf75e724fc061a8a400afbf0efc11377f Mon Sep 17 00:00:00 2001 From: qndel Date: Tue, 14 Apr 2020 03:32:58 +0200 Subject: [PATCH] fix wrong enum --- SourceX/controls/plrctrls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SourceX/controls/plrctrls.cpp b/SourceX/controls/plrctrls.cpp index bbe754dae..d1567fe54 100644 --- a/SourceX/controls/plrctrls.cpp +++ b/SourceX/controls/plrctrls.cpp @@ -128,7 +128,7 @@ void FindItemOrObject() } } - if (currlevel == DTYPE_TOWN || pcursitem != -1) + if (leveltype == DTYPE_TOWN || pcursitem != -1) return; // Don't look for objects in town for (int xx = -1; xx < 2; xx++) { @@ -873,7 +873,7 @@ struct RightStickAccumulator { } // namespace bool IsAutomapActive() { - return automapflag && currlevel != DTYPE_TOWN; + return automapflag && leveltype != DTYPE_TOWN; } void HandleRightStickMotion()