From 0c976c4d8c441100d372ffa97e6d555fada25d8d Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 21 Dec 2024 15:34:45 -0700 Subject: [PATCH] Use enum --- LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp index a82f05a2..ddf7960d 100644 --- a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp +++ b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp @@ -607,8 +607,8 @@ MxResult LegoNavController::ProcessKeyboardInput() bool2 = TRUE; } - MxFloat val = keyFlags & 0x10 ? 1.0f : 4.0f; - MxFloat val2 = keyFlags & 0x10 ? 1.0f : 2.0f; + MxFloat val = keyFlags & LegoInputManager::c_bit5 ? 1.0f : 4.0f; + MxFloat val2 = keyFlags & LegoInputManager::c_bit5 ? 1.0f : 2.0f; if (!bool1) { m_targetRotationalVel = CalculateNewTargetVel(hMax, m_hMax / 2, m_maxRotationalVel);