changing level workaround (C341-13)
Use a new flush_screen(-1) call to toggle 3rd screen update in goto_level. This keeps the 3rd screen state unchanged, no matter what happens at higher levels, ensures the map window cursor stays on the hero, ensures the hero's showrace colors remains bright white, and so on.
This commit is contained in:
@@ -1346,8 +1346,11 @@ flush_screen(cursor_on_u)
|
||||
* flush_screen->print_glyph->impossible->pline->flush_screen
|
||||
*/
|
||||
static boolean flushing = 0;
|
||||
static boolean delay_flushing = 0;
|
||||
register int x,y;
|
||||
|
||||
if (cursor_on_u == -1) delay_flushing = !delay_flushing;
|
||||
if (delay_flushing) return;
|
||||
if (flushing) return; /* if already flushing then return */
|
||||
flushing = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user