mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Some stylistic fixes for code review
This commit is contained in:
parent
f0b8fd8eec
commit
63382aed93
1 changed files with 7 additions and 2 deletions
|
@ -125,7 +125,9 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
|
||||
protected boolean isExecutingMacro() {
|
||||
return !actionQueue.isEmpty() || (actionIterations > 0 && !actionQueueSaved.isEmpty());
|
||||
return !recordingMacro
|
||||
&& (!actionQueue.isEmpty()
|
||||
|| (actionIterations > 0 && !actionQueueSaved.isEmpty()));
|
||||
}
|
||||
|
||||
protected boolean pullResponseFromQueue(Game game) {
|
||||
|
@ -152,7 +154,10 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
|
||||
protected void waitForResponse(Game game) {
|
||||
if(!recordingMacro && pullResponseFromQueue(game)) return;
|
||||
if (isExecutingMacro()) {
|
||||
pullResponseFromQueue(game);
|
||||
return;
|
||||
}
|
||||
response.clear();
|
||||
logger.debug("Waiting response from player: " + getId());
|
||||
game.resumeTimer(getTurnControlledBy());
|
||||
|
|
Loading…
Reference in a new issue