From: Christian Heller Date: Sat, 5 Dec 2020 01:56:11 +0000 (+0100) Subject: Don't set game.changed where no new send_gamestate would be necessitated. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=1f945a061889575a755faf258ba7b7f5a51b3a03;p=plomrogue2 Don't set game.changed where no new send_gamestate would be necessitated. --- diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 7a05ae8..dc2e6ea 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -96,7 +96,7 @@ def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id): if not t: raise GameError('thing of ID %s not found' % thing_id) t.protection = protection_char - game.changed = True + #game.changed = True cmd_THING_PROTECTION.argtypes = 'int:pos char' def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id): @@ -108,7 +108,7 @@ def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id): if tile_class == '.': raise GameError('tile class "." must remain unprotected') game.map_control_passwords[tile_class] = password - game.changed = True + #game.changed = True cmd_SET_MAP_CONTROL_PASSWORD.argtypes = 'char string' def cmd_NICK(game, nick, connection_id):