Fix auto-rotating spaceships

parent c37ce43a
......@@ -641,7 +641,7 @@ void MyMainView::moveShips()
ship[i]->rotateRight(config.rotationEnergyNeed,
config.rotationSpeed);
if (!(playerIsAi && playerKeyPressed[i][PlayerKeyLeft]) ||
if ((!playerIsAi && playerKeyPressed[i][PlayerKeyLeft]) ||
(playerIsAi && ai[i]->rotateLeft()))
ship[i]->rotateLeft(config.rotationEnergyNeed,
config.rotationSpeed);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment