From 279e60e6066ff1f335c50b3355a05d9c1aa1fba6 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 6 Dec 2020 19:32:06 +0100
Subject: [PATCH] In web client, fix buggy attempt at drawing empty map.

---
 rogue_chat.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rogue_chat.html b/rogue_chat.html
index dd037e2..f4aa6ff 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -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 = [];
-- 
2.30.2