home · contact · privacy
Fix bug that emptied annotation input on pre-existing annotation.
[plomrogue2] / rogue_chat_nocanvas_monochrome.html
index c50a12f20c0f717d39a5d4911029de170f0d7f6b..a5b2d69d81913938ba42c2ec4b9bee549e7779df 100644 (file)
@@ -277,6 +277,8 @@ let server = {
         } else if (tokens[0] === 'ANNOTATION') {
             let position = parser.parse_yx(tokens[1]);
             explorer.update_info_db(position, tokens[2]);
+            tui.restore_input_values();
+            tui.full_refresh();
         } else if (tokens[0] === 'UNHANDLED_INPUT') {
             tui.log_msg('? unknown command');
         } else if (tokens[0] === 'PLAY_ERROR') {
@@ -386,6 +388,7 @@ let tui = {
     this.map_mode = 'terrain';
     if (mode.shows_info && game.player_id in game.things) {
       explorer.position = game.things[game.player_id].position;
+      explorer.query_info();
     }
     this.mode = mode;
     this.empty_input();