From ea961663328b40a2423cb2bb0d73a8e91b1797ee Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Sat, 14 Nov 2020 00:57:35 +0100 Subject: [PATCH] Fix square grid scrolling bug. --- rogue_chat_curses.py | 2 +- rogue_chat_nocanvas_monochrome.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.30.2