only issuing orders with targets

This commit is contained in:
devZoGok
2023-12-06 20:38:46 +02:00
parent f4538d08ae
commit 101bc04f78
+2
View File
@@ -273,6 +273,8 @@ namespace battleship{
//TODO fix ejectable unit selection with multiple transports selected
void ActiveGameState::issueOrder(Order::TYPE type, vector<Order::Target> targets, bool addOrder) {
if(targets.empty()) return;
Vector3 destDir = (selectingDestOrient ? GameObjectFrameController::getSingleton()->getGameObjectFrame(0).getDirVec() : Vector3::VEC_ZERO);
mainPlayer->issueOrder(type, destDir, targets, addOrder);
this->targets.clear();