From: Christian Heller Date: Thu, 10 Dec 2020 23:34:29 +0000 (+0100) Subject: In web client, fix broken annotation hints. X-Git-Url: https://plomlompom.com/repos/balance?a=commitdiff_plain;h=80814ef774cbdf10820001490aa45681af44056f;p=plomrogue2 In web client, fix broken annotation hints. --- diff --git a/rogue_chat.html b/rogue_chat.html index d8d9db7..1ba0ff1 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1043,8 +1043,9 @@ let tui = { }; map_lines_split.push(line); if (this.map_mode == 'terrain + annotations') { - for (const coordinate of explorer.info_hints) { - map_lines_split[coordinate[0]][coordinate[1]] = 'A '; + for (const [coordinate, _] of Object.entries(explorer.annotations)) { + const yx = coordinate.split(',') + map_lines_split[yx[0]][yx[1]] = 'A '; } } else if (this.map_mode == 'terrain + things') { for (const p in game.portals) {