dialog::DONT_SHOW to prevent showing the map in number dialogs

This commit is contained in:
Zeno Rogue 2019-07-12 23:13:35 +02:00
parent e58e3c9bcb
commit 392611045a
2 changed files with 5 additions and 0 deletions

View File

@ -740,6 +740,7 @@ namespace dialog {
void drawNumberDialog() {
cmode = sm::NUMBER | dialogflags;
if(numberdark < DONT_SHOW)
gamescreen(numberdark);
init(ne.title);
addInfo(ne.s);
@ -1126,6 +1127,7 @@ namespace dialog {
void string_edit_dialog() {
cmode = sm::NUMBER | dialogflags;
if(numberdark < DONT_SHOW)
gamescreen(numberdark);
init(ne.title);
addInfo(view_edited_string());

View File

@ -2048,6 +2048,9 @@ namespace dialog {
inline reaction_t add_confirmation(const reaction_t& act) {
return [act] { do_if_confirmed(act); };
}
extern int numberdark;
static const int DONT_SHOW = 16;
}
void checkStunKill(cell *dest);