Skip to content

Commit e3aa0e1

Browse files
committed
fix(sdk): make ControllingClient also receive new GameStates
This was lost in the refactor of c7b3841. ControllingClient is also an IHistoryListener and needs to receive all GameStates for saving them. This enables the GUI to display and step through a game using the ControllingClient.
1 parent b21d30d commit e3aa0e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/src/server-api/sc/networking/clients/LobbyClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ public IControllableGame observeAndControl(PrepareGameProtocolMessage handle) {
312312
String roomId = handle.getRoomId();
313313
ControllingClient controller = new ControllingClient(this, roomId);
314314
addListener((IAdministrativeListener) controller);
315+
addListener((IHistoryListener) controller);
315316
start();
316317
logger.debug("Sending observation request for roomId: {}", roomId);
317318
send(new ObservationRequest(roomId));

0 commit comments

Comments
 (0)