X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empathy.js;h=578d0504e15aac6bb3eb8f287d5c5aa0fc4d2aa2;hb=97a30bcc5ad4730523a80a058db80b89a9c328b7;hp=354e3fac2e71838a8753ac71526af40363095782;hpb=4fbd72283671883caf0d6a9e5ef0181c4ae6f011;p=empires-server diff --git a/empathy.js b/empathy.js index 354e3fa..578d050 100644 --- a/empathy.js +++ b/empathy.js @@ -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); }