reduce flashing w/options simple menu iterations

This commit is contained in:
nhmall
2023-12-03 01:15:04 -05:00
parent 7d22a2c7b9
commit 713eafc8c8
3 changed files with 12 additions and 4 deletions

View File

@@ -1614,7 +1614,8 @@ docrt_flags(int refresh_flags)
coordxy x, y;
register struct rm *lev;
boolean maponly = (refresh_flags & docrtMapOnly) != 0,
redrawonly = (refresh_flags & docrtRefresh) != 0;
redrawonly = (refresh_flags & docrtRefresh) != 0,
nocls = (refresh_flags & docrtNocls) != 0;
if (!u.ux || gp.program_state.in_docrt)
return; /* display isn't ready yet */
@@ -1646,7 +1647,8 @@ docrt_flags(int refresh_flags)
* + fills the physical screen with the symbol for rock
* + clears the glyph buffer
*/
cls();
if (!nocls)
cls();
/* display memory */
for (x = 1; x < COLNO; x++) {