home · contact · privacy
Don't set game.changed where no new send_gamestate would be necessitated.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 5 Dec 2020 01:56:11 +0000 (02:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 5 Dec 2020 01:56:11 +0000 (02:56 +0100)
plomrogue/commands.py

index 7a05ae8fa07bd0a9e8150ef53bc4c645bc509556..dc2e6ead099deb9c2a873f93e3309bd327d7d464 100644 (file)
@@ -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):