home · contact · privacy
Fix fail failure.
[plomrogue2] / rogue_chat.html
index 781fc63b99f7e0618922a7b9088136f540e7353e..23d1a574679c804582021ef1d53b4fe6997e3cfa 100644 (file)
@@ -772,7 +772,7 @@ let tui = {
     function fail(msg, return_mode) {
         tui.log_msg('? ' + msg);
         terminal.blink_screen();
-        this.switch_mode(return_mode);
+        tui.switch_mode(return_mode);
     }
 
     if (this.mode && this.mode.name == 'control_tile_draw') {
@@ -1134,7 +1134,7 @@ let tui = {
   },
   draw_face_popup: function() {
       const t = game.things[this.draw_face];
-      if (!t) {
+      if (!t || !t.face) {
           this.draw_face = false;
           return;
       }