confirm-embark: Make esc work again

develop
lethosor 2014-06-04 23:18:19 -04:00
parent f29d1886ff
commit 0a1d87c09f
1 changed files with 5 additions and 2 deletions

@ -386,8 +386,11 @@ struct confirm_embark_hook : df::viewscreen_setupdwarfgamest
DEFINE_VMETHOD_INTERPOSE(bool, key_conflict, (df::interface_key key)) DEFINE_VMETHOD_INTERPOSE(bool, key_conflict, (df::interface_key key))
{ {
if (key == df::interface_key::OPTIONS) if (confirm_embark_state == ECS_CONFIRM)
return true; {
if (key == df::interface_key::OPTIONS)
return true;
}
return false; return false;
} }