X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=3dd571fe857cb912493d9dc0105a0a559103d2fe;hp=1444fe8be075de897b9e91c869047097f903bf2f;hb=6cf6b75d5b9c84476a121cfd2ff11a0351ecba47;hpb=969000b44b047ef2d77619bd3882a3f09eb1787d diff --git a/src/screens.c b/src/screens.c index 1444fe8b..3dd571fe 100644 --- a/src/screens.c +++ b/src/screens.c @@ -7206,6 +7206,7 @@ boolean ConfigureVirtualButtonsMain() char grid_button_old[MAX_GRID_XSIZE][MAX_GRID_YSIZE]; char grid_button_tmp[MAX_GRID_XSIZE][MAX_GRID_YSIZE]; boolean set_grid_button = FALSE; + int nr = GRID_ACTIVE_NR(); int x, y; for (x = 0; x < MAX_GRID_XSIZE; x++) @@ -7369,6 +7370,10 @@ boolean ConfigureVirtualButtonsMain() BackToFront(); } + for (x = 0; x < MAX_GRID_XSIZE; x++) + for (y = 0; y < MAX_GRID_YSIZE; y++) + overlay.grid_button_all[nr][x][y] = overlay.grid_button[x][y]; + overlay.grid_button_highlight = CHAR_GRID_BUTTON_NONE; SetOverlayShowGrid(FALSE);