Skip to content

Commit

Permalink
Use enum
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles committed Dec 21, 2024
1 parent 5b0d262 commit 0c976c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c976c4

Please sign in to comment.