X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.css?a=blobdiff_plain;f=plomrogue%2Fcommands.py;h=1cf051266e81a6c504454004a1f3cfddb7cb3bfd;hb=af8fcb03dfec27571cf6c79127a326caa2348bba;hp=770fb2282d6a9f803bfe9210cda905340a041875;hpb=856b68988876a63409737dac77b4d4921b9a466b;p=plomrogue2 diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 770fb22..1cf0512 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -82,7 +82,7 @@ def cmd_SET_TILE_CONTROL(game, yx, control_char, connection_id): map_control = game.get_map(big_yx, 'control') map_control[little_yx] = control_char game.changed = True - game.changed_fovs = True + game.record_fov_change((big_yx, little_yx)) cmd_SET_TILE_CONTROL.argtypes = 'yx_tuple:nonneg char' def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id): @@ -237,7 +237,7 @@ def cmd_THING_NAME(game, thing_id, name, pw, connection_id): if not t: raise GameError('thing of ID %s not found' % thing_id) if not game.can_do_thing_with_pw(t, pw): - raise GameError('wrong password for tile') + raise GameError('wrong password for thing') t.name = name game.changed = True cmd_THING_NAME.argtypes = 'int:pos string string'