minor rearrange of statements

This commit is contained in:
Maxmtg
2013-04-04 05:26:32 +00:00
parent 16414982a8
commit 628260b1fb

View File

@@ -125,15 +125,14 @@ public class InputControl extends MyObservable implements java.io.Serializable {
*/
public final Input getActualInput(GameState game) {
GameAge age = game.getAge();
if ( age == GameAge.BeforeMulligan || age == GameAge.GameOver)
return inputLock;
if ( age == GameAge.Mulligan ) {
HumanPlayer human = Singletons.getControl().getPlayer();
return game.getType() == GameType.Commander ? new InputPartialParisMulligan(match, human) : new InputMulligan(match, human);
}
if ( age != GameAge.Play )
return inputLock;
if (!this.inputStack.isEmpty()) { // incoming input to Control
return this.inputStack.peek();
}