X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=rogue_chat_curses.py;h=ff559246fe1cbdf22aec2879a41ecf3b7ab3777a;hb=9ac7e8befde463275086945c1ed5399bb8ef3af0;hp=65d5385ee2d20d17f5fb117a4ac82ea987163445;hpb=1c16b715953524a6d9e84993963cf4f7adcc5bbe;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 65d5385..ff55924 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -256,14 +256,14 @@ def cmd_MAP(game, geometry, size, content): map_geometry_class = globals()['MapGeometry' + geometry] game.map_geometry_new = map_geometry_class(size) game.map_content_new = content - if type(game.map_geometry) == MapGeometrySquare: + if type(game.map_geometry_new) == MapGeometrySquare: game.tui.movement_keys = { game.tui.keys['square_move_up']: 'UP', game.tui.keys['square_move_left']: 'LEFT', game.tui.keys['square_move_down']: 'DOWN', game.tui.keys['square_move_right']: 'RIGHT', } - elif type(game.map_geometry) == MapGeometryHex: + elif type(game.map_geometry_new) == MapGeometryHex: game.tui.movement_keys = { game.tui.keys['hex_move_upleft']: 'UPLEFT', game.tui.keys['hex_move_upright']: 'UPRIGHT',