window-ports should respect flags.silent setting

Like tty_nhbell() in termcap.c, window-ports really should
respect the flags.silent setting.
This commit is contained in:
nhmall
2023-03-24 12:23:19 -04:00
parent a136dbac06
commit 07ba3904fd
4 changed files with 9 additions and 4 deletions

View File

@@ -628,7 +628,8 @@ int NetHackQtBind::qt_nh_poskey(coordxy *x, coordxy *y, int *mod)
void NetHackQtBind::qt_nhbell()
{
QApplication::beep();
if (!::flags.silent)
QApplication::beep();
}
int NetHackQtBind::qt_doprev_message()