home · contact · privacy
Fix invalid admin state upon re-login.
[plomrogue2] / rogue_chat.html
index 9f02d8dc790675dd29a7047ff8fae2d53d8ffdec..e7004a177f913ed3c27e568bdf94b04d3c7f624d 100644 (file)
@@ -465,6 +465,7 @@ let server = {
         this.websocket.onopen = function(event) {
             game.thing_types = {};
             game.terrains = {};
+            tui.is_admin = false;
             server.send(['TASKS']);
             server.send(['TERRAINS']);
             server.send(['THING_TYPES']);
@@ -816,6 +817,8 @@ let tui = {
     }
     this.draw_face = false;
     this.tile_draw = false;
+    this.ascii_draw_stage = 0;
+    this.full_ascii_draw = '';
     if (mode_name == 'command_thing' && (!game.player.carrying
                                          || !game.player.carrying.commandable)) {
         return fail('not carrying anything commandable');