mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-09-03 04:23:36 +00:00
only issuing orders with targets
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user