X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=empathy.js;h=29d31bf7d46fbd0595e2ad8e6b3506057da387db;hb=c415c76ac632b8e55cf0260c52ebc7c77836614e;hp=8ecf9e10fc9bb26e2a2068a65dfb87a420138b15;hpb=d4bf8b14e7407a96f9b035ad48cb31a2393a36ec;p=empires-server diff --git a/empathy.js b/empathy.js index 8ecf9e1..29d31bf 100644 --- a/empathy.js +++ b/empathy.js @@ -43,6 +43,11 @@ class Empathy extends Game { if (! prompt) return false; + /* Ignore any start request that comes in while a prompt is + * already being played. */ + if (this.state.active_prompt) + return false; + this.state.active_prompt = prompt; this.broadcast_event_object('start', prompt);