From 80814ef774cbdf10820001490aa45681af44056f Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 11 Dec 2020 00:34:29 +0100
Subject: [PATCH] In web client, fix broken annotation hints.

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

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) {
-- 
2.30.2