X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empathy.js;h=2d3028be4fec5ca04eb21aee53dcf16a7eb2806d;hb=4b5792d269a7df065ac9b05e86f28c1c21ec40ab;hp=28b30638735b25839d5c4023dec7c26a4b6e0d0f;hpb=870c518cd68dfcda639f5d453acbfe09f39c3a19;p=lmno-server diff --git a/empathy.js b/empathy.js index 28b3063..2d3028b 100644 --- a/empathy.js +++ b/empathy.js @@ -200,10 +200,11 @@ class Empathy extends Game { if (this.answering_idle_timer) { clearTimeout(this.answering_idle_timer); + this.ansering_idle_timer = 0; } 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); }