From 8006d40d1495a848b07a59bf514100648c82459c Mon Sep 17 00:00:00 2001 From: Cerapter Date: Sat, 15 Sep 2018 01:16:28 +0200 Subject: Fixed bugs regarding noninterrupting pres. - They are now actually non-interrupting when an interjection is played. - Realisation now happens at the start of the message if the pre is non-interrupting. --- server/aoprotocol.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server') diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 44b4612..4712656 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -418,6 +418,12 @@ class AOProtocol(asyncio.Protocol): if len(showname) > 15: self.client.send_host_message("Your IC showname is way too long!") return + if nonint_pre != '': + if button in (1, 2, 3, 4, 23): + if anim_type == 1 or anim_type == 2: + anim_type = 0 + elif anim_type == 6: + anim_type = 5 if self.client.area.non_int_pres_only: if anim_type == 1 or anim_type == 2: anim_type = 0 -- cgit