X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.css?a=blobdiff_plain;f=rogue_chat.html;h=23d1a574679c804582021ef1d53b4fe6997e3cfa;hb=e9314285cc797bad29b3621d713ad2a0703c4d2e;hp=781fc63b99f7e0618922a7b9088136f540e7353e;hpb=b3274c1e3219d50cc67487684608c7b4bd456675;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index 781fc63..23d1a57 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -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; }