Workaround for flickering Escargo pickup window

This commit is contained in:
jeffman 2019-02-20 17:07:58 -05:00
parent 84fcae4ca7
commit ee1b331fd8
1 changed files with 5 additions and 1 deletions

View File

@ -224,6 +224,7 @@ int goods_inner_process(WINDOW *window, unsigned short *items)
if (state.b || state.select) if (state.b || state.select)
{ {
window->counter = 0; window->counter = 0;
window->vwf_skip = false;
m2_sub_a334c(0); m2_sub_a334c(0);
m2_sub_a3384(0); m2_sub_a3384(0);
return -1; return -1;
@ -375,9 +376,10 @@ int goods_inner_process(WINDOW *window, unsigned short *items)
} }
} }
if (window->first) if (window->first && !window->vwf_skip)
{ {
window->first = false; window->first = false;
window->vwf_skip = true;
// Draw window header // Draw window header
map_tile(0xB3, window->window_x, window->window_y - 1); map_tile(0xB3, window->window_x, window->window_y - 1);
@ -407,6 +409,7 @@ int goods_inner_process(WINDOW *window, unsigned short *items)
if (state.b || state.select) if (state.b || state.select)
{ {
window->counter = 0; window->counter = 0;
window->vwf_skip = false;
m2_soundeffect(0x12E); m2_soundeffect(0x12E);
m2_sub_a334c(0); m2_sub_a334c(0);
m2_sub_a3384(0); m2_sub_a3384(0);
@ -416,6 +419,7 @@ int goods_inner_process(WINDOW *window, unsigned short *items)
if (state.a || state.l) if (state.a || state.l)
{ {
window->counter = 0xFFFF; window->counter = 0xFFFF;
window->vwf_skip = false;
m2_soundeffect(0x12D); m2_soundeffect(0x12D);
m2_sub_a334c(*active_window_party_member + 1); m2_sub_a334c(*active_window_party_member + 1);