From: Christian Heller <c.heller@plomlompom.de> Date: Fri, 13 Nov 2020 23:57:35 +0000 (+0100) Subject: Fix square grid scrolling bug. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/bar%20baz.html?a=commitdiff_plain;h=ea961663328b40a2423cb2bb0d73a8e91b1797ee;p=plomrogue2 Fix square grid scrolling bug. --- diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 2207220..3b110ba 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -512,7 +512,7 @@ class TUI: indent = 0 if indent else 1 else: for line in map_lines_split: - map_lines += [' '.join(line)] + map_lines += [''.join(line)] window_center = YX(int(self.size.y / 2), int(self.window_width / 2)) player = self.game.get_thing(self.game.player_id) diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html index 1f2ebe0..4956cbd 100644 --- a/rogue_chat_nocanvas_monochrome.html +++ b/rogue_chat_nocanvas_monochrome.html @@ -36,8 +36,7 @@ toggle terrain/control view (from study mode): <input id="key_toggle_map_mode" t </div> <script> "use strict"; -//let websocket_location = "wss://plomlompom.com/rogue_chat/"; -let websocket_location = "ws://localhost:8000/"; +let websocket_location = "wss://plomlompom.com/rogue_chat/"; let rows_selector = document.getElementById("n_rows"); let cols_selector = document.getElementById("n_cols"); @@ -468,7 +467,7 @@ let tui = { let map_lines = [] if (game.map_geometry == 'Square') { for (let line_split of map_lines_split) { - map_lines.push(line_split.join(' ')); + map_lines.push(line_split.join('')); }; } else if (game.map_geometry == 'Hex') { let indent = 0