From: Christian Heller Date: Sun, 20 Aug 2017 19:12:13 +0000 (+0200) Subject: Extend INC command results. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/ledger?a=commitdiff_plain;h=43e1de9a436affa7c081fe7bb4e51ba3a1947a1e;p=plomrogue2-experiments Extend INC command results. --- diff --git a/server.py b/server.py index 0a0ac88..e9b519d 100755 --- a/server.py +++ b/server.py @@ -131,7 +131,8 @@ class CommandHandler: self.send_to(connection_id, reply) def cmd_inc(self, connection_id): - """Increment world.turn, send NEW_TURN message to all clients.""" + """Increment world.turn, send TURN_FINISHED, NEW_TURN to everyone.""" + self.send_all('TURN_FINISHED ' + str(self.world.turn)) self.world.turn += 1 self.send_all('NEW_TURN ' + str(self.world.turn))