Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Commit 5ad5d59

Browse files
committed
fix(gameManager): removed duplicate starting of game
#81
1 parent dbcbd01 commit 5ad5d59

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

socha

Submodule socha updated from 8399e73 to 10f3430

src/gui/App.tsx

+1-20
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,7 @@ export class App extends React.Component<any, State> {
7474
logDir: '.',
7575
}),
7676
}
77-
Hotfix.init(gco => this.startGameWithOptions(gco))
78-
79-
// XXX only for testing, remove
80-
window.setTimeout(() => {
81-
this.startGameWithOptions({
82-
kind: GameType.Versus,
83-
gameName: "Test",
84-
gameId: Api.getGameManager().createGameId("Test", false),
85-
firstPlayer: {
86-
kind: PlayerType.Human,
87-
name: "Spieler 1",
88-
timeoutPossible: false,
89-
},
90-
secondPlayer: {
91-
kind: PlayerType.Human,
92-
name: "Spieler 1",
93-
timeoutPossible: false,
94-
}
95-
})
96-
}, 2000);
77+
// Hotfix.init(gco => this.startGameWithOptions(gco))
9778
}
9879

9980
private loadReplay() {

0 commit comments

Comments
 (0)