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') {
},
draw_face_popup: function() {
const t = game.things[this.draw_face];
- if (!t) {
+ if (!t || !t.face) {
this.draw_face = false;
return;
}