corrected ordering attacks

This commit is contained in:
devZoGok
2025-05-31 19:54:11 +03:00
parent 3f9c385728
commit 72134c1bc4
+3 -2
View File
@@ -204,7 +204,7 @@ namespace battleship{
cursorState = (unloadFlag ? CursorState::UNLOAD : CursorState::LOAD);
}
else if(controlPressed || gameObjUnit && !(ownGameObj || alliedGameObj))
else if(gameObjUnit && !(ownGameObj || alliedGameObj))
cursorState = CursorState::ATTACK;
else
cursorState = CursorState::NORMAL;
@@ -238,7 +238,7 @@ namespace battleship{
}
else if(cursorState == CursorState::HACK)
orderPossible = (!ownGameObj && gameObjUnit && mainPlayer->getSelectedUnit(0)->getUnitClass() == UnitClass::ENGINEER);
else if(gameObjUnit)
else if(controlPressed)
cursorState = CursorState::ATTACK;
else
cursorState = CursorState::NORMAL;
@@ -788,6 +788,7 @@ namespace battleship{
forceCursorState = isPressed;
controlPressed = isPressed;
orderPossible = isPressed;
break;
case Bind::LEFT_SHIFT:
{