home · contact · privacy
In web client, fix buggy attempt at drawing empty map.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 6 Dec 2020 18:32:06 +0000 (19:32 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 6 Dec 2020 18:32:06 +0000 (19:32 +0100)
rogue_chat.html

index dd037e20997fbd620cd97228d40a94841b8e1d25..f4aa6ff522d4ebc6e1f1c0ee49cb99cde4c357e8 100644 (file)
@@ -899,6 +899,9 @@ let tui = {
       this.full_refresh();
   },
   draw_map: function() {
+    if (!game.turn_complete && this.map_lines.length == 0) {
+        return;
+    }
     if (game.turn_complete) {
         let map_lines_split = [];
         let line = [];