key mapping to eject units

This commit is contained in:
devZoGok
2023-12-09 12:21:18 +02:00
parent 68a083172a
commit 1bbf4dc40e
5 changed files with 10 additions and 5 deletions
+2
View File
@@ -56,6 +56,8 @@ namespace battleship{
}
void Player::issueOrder(Order::TYPE type, Vector3 destDir, vector<Order::Target> targets, bool append){
if(type != Order::TYPE::EJECT && targets.empty()) return;
vector<Unit*> selectedUnits = getSelectedUnits();
if(type == Order::TYPE::EJECT){