X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plomrogue%2Fcommands.py;h=c2bcc0a4858076568f0f7609a4f69f1efa3528d4;hb=9a54df0364d718dda3541044febbf01869f94b1d;hp=f6744aca92e037d132effc9ebd0b8dcae9e05d13;hpb=da3b93d7a4bd66aef5860bb5a7099e89ab18024c;p=plomrogue2 diff --git a/plomrogue/commands.py b/plomrogue/commands.py index f6744ac..c2bcc0a 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -73,7 +73,7 @@ def cmd_TURN(game, n): cmd_TURN.argtypes = 'int:nonneg' def cmd_ANNOTATE(game, pw, yx, msg, connection_id): - if not game.can_do_tile_with_pw(yx, pw): + if connection_id and not game.can_do_tile_with_pw(yx, pw): raise GameError('wrong password for tile') if msg == ' ': if yx in game.annotations: @@ -84,7 +84,7 @@ def cmd_ANNOTATE(game, pw, yx, msg, connection_id): cmd_ANNOTATE.argtypes = 'string yx_tuple:nonneg string' def cmd_PORTAL(game, pw, yx, msg, connection_id): - if not game.can_do_tile_with_pw(yx, pw): + if connection_id and not game.can_do_tile_with_pw(yx, pw): raise GameError('wrong password for tile') if msg == ' ': if yx in game.portals: