fix: ok, we are sending more events

This commit is contained in:
punchready 2021-07-29 00:22:11 +02:00
parent 8add62fe20
commit 0fb3ca8728

View File

@ -118,6 +118,8 @@ class GameStateManager {
ArrayList<Event> result = GameLogic.startGame(snapshot, selectedCharacters1, selectedCharacters2); ArrayList<Event> result = GameLogic.startGame(snapshot, selectedCharacters1, selectedCharacters2);
applyEvents(result); applyEvents(result);
result.add(GameLogic.buildGameStateEvent(state));
snapshot = state.snapshot(); snapshot = state.snapshot();
ArrayList<Event> result2 = GameLogic.startRound(snapshot); ArrayList<Event> result2 = GameLogic.startRound(snapshot);
@ -125,7 +127,7 @@ class GameStateManager {
result.addAll(result2); result.addAll(result2);
result.add(GameLogic.buildGameStateEvent(snapshot)); result.add(GameLogic.buildGameStateEvent(state));
return result; return result;
} }