Merge pull request #886 from Pax1601/740-ships-might-not-be-able-to-shoot-at-points-anymore-ie-tomahawk-stuff

Fixed bug that stopped ships from firing at area
This commit is contained in:
Pax1601
2024-03-20 16:58:57 +01:00
committed by GitHub

View File

@@ -167,6 +167,7 @@ void NavyUnit::AIloop()
setState(State::IDLE);
}
}
break;
}
case State::ATTACK: {
@@ -187,6 +188,8 @@ void NavyUnit::AIloop()
else {
setState(State::IDLE);
}
break;
}
case State::FIRE_AT_AREA: {
setTask("Firing at area");
@@ -200,6 +203,8 @@ void NavyUnit::AIloop()
scheduler->appendCommand(command);
setHasTask(true);
}
break;
}
case State::SIMULATE_FIRE_FIGHT: {
setTask("Simulating fire fight");
@@ -207,6 +212,7 @@ void NavyUnit::AIloop()
// TODO
setState(State::IDLE);
break;
}
default:
break;