From: Christian Heller Date: Sun, 25 Oct 2020 03:34:01 +0000 (+0100) Subject: Only count new turns on ticks that change world state. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=2595413918ab08fe7aa5b0772abf2420dc89d175;p=plomrogue2-experiments Only count new turns on ticks that change world state. --- diff --git a/new2/plomrogue/game.py b/new2/plomrogue/game.py index 25f4d80..82e5d18 100755 --- a/new2/plomrogue/game.py +++ b/new2/plomrogue/game.py @@ -87,8 +87,8 @@ class Game(GameBase): for connection_id in [c_id for c_id in self.sessions if self.sessions[c_id] == t.id_]: self.io.send('GAME_ERROR ' + quote(str(e)), connection_id) - self.turn += 1 if self.changed: + self.turn += 1 self.send_gamestate() self.changed = False