]> git.cworth.org Git - empires-server/blobdiff - empathy.js
Fix bug attempting to set "answering_idle" state
[empires-server] / empathy.js
index 354e3fac2e71838a8753ac71526af40363095782..578d0504e15aac6bb3eb8f287d5c5aa0fc4d2aa2 100644 (file)
@@ -19,7 +19,7 @@ const PHASE_MINIMUM_TIME = 30;
  *
  * Specified in seconds
  */
-const PHASE_IDLE_TIMEOUT = 10;
+const PHASE_IDLE_TIMEOUT = 30;
 
 class Empathy extends Game {
   constructor(id) {
@@ -203,7 +203,7 @@ class Empathy extends Game {
     }
     if (! this.state.answering_idle) {
       this.answering_idle_timer = setTimeout(() => {
-        this.state_answering_idle = true;
+        this.state.answering_idle = true;
         this.broadcast_event_object('answering-idle', true);
       }, PHASE_IDLE_TIMEOUT * 1000);
     }