Support undeploying by tapping commander row

This commit is contained in:
drdev
2014-12-08 03:05:21 +00:00
parent eaaca84826
commit 3c2dffe1c4

View File

@@ -267,6 +267,13 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter {
if (model.setCurrentRegion(commander.getDeployedRegion())) {
regionDisplay.onRegionChanged();
}
else if (commander.getCurrentDayAction() != ConquestAction.Undeploy) {
//if already on commander's region, change action to undeploy
commander.setCurrentDayAction(ConquestAction.Undeploy);
}
else {
commander.setCurrentDayAction(null);
}
}
}
else if (model.getCurrentPlaneData().getWins() >= panel.getWinsToUnlock()) {