File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ <h1>Oops!</h1>
117
117
</ p >
118
118
< p class = 'errorText '>
119
119
If this problem persists, contact < span id = 'contact '> </ span > ,
120
- and let them know Error < span id = 'errorCode '> 404</ span > has occurred.
120
+ and let him know Error < span id = 'errorCode '> 404</ span > has occurred.
121
121
</ p >
122
122
< p class = 'errorText '>
123
123
Press the button below to try again. < span id = 'retryCount '> </ span >
Original file line number Diff line number Diff line change 223
223
224
224
GameScreen . prototype . answerQuestion = function ( data ) {
225
225
if ( ! this . timer . running ) {
226
- this . timer . start ( ) ;
226
+ //this.timer.start();
227
+ /* This code is executed if there was a connection error mid-game, kick to menu on reload */
228
+ /* Must call change event async */
229
+ setTimeout (
230
+ function ( ref , QUESTION_MOLECULE ) {
231
+ FCCommunicationManager . errorCallback = undefined ;
232
+ disableButtons ( ) ;
233
+ ref . scene . remove ( ref . currentQuestion [ QUESTION_MOLECULE ] ) ;
234
+ ref . currentQuestion = undefined ;
235
+ ref . timer . stop ( ) ;
236
+ $ ( '#gameUI' ) . trigger ( new ScreenChangeEvent ( 'menu' ) ) ;
237
+ } ,
238
+ 1 , this , QUESTION_MOLECULE
239
+ ) ;
240
+
241
+ return ;
227
242
}
228
243
229
244
if ( data . correct === 'true' ) {
You can’t perform that action at this time.
0 commit comments