From: Christian Heller Date: Sun, 6 Dec 2020 18:32:06 +0000 (+0100) Subject: In web client, fix buggy attempt at drawing empty map. X-Git-Url: https://plomlompom.com/repos/task?a=commitdiff_plain;h=279e60e6066ff1f335c50b3355a05d9c1aa1fba6;p=plomrogue2 In web client, fix buggy attempt at drawing empty map. --- 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 = [];