home · contact · privacy
In web client, fix broken annotation hints.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 10 Dec 2020 23:34:29 +0000 (00:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 10 Dec 2020 23:34:29 +0000 (00:34 +0100)
rogue_chat.html

index d8d9db7c896535082a37e36ff8ac9bc3b25ebc5c..1ba0ff1f6fcf02debf88eaefcc07b2c9e71c3d07 100644 (file)
@@ -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) {