Round map.colstate to nearest 5 when entering options menus

Also set map.tdrawback to true when leaving the menu.

This is to fix the interpolated color of the tower background
persisting, as well as making sure the menu background doesn't persist
when exiting.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-06-23 15:23:57 -04:00
1 parent 8ed9ee1ca2
commit ccd6cfab7f
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -7762,4 +7762,5 @@ void Game::returntopausemenu()
returntomenu(kludge_ingametemp); returntomenu(kludge_ingametemp);
gamestate = MAPMODE; gamestate = MAPMODE;
map.kludge_to_bg(); map.kludge_to_bg();
map.tdrawback = true;
} }
+2 -1
View File
@@ -2143,8 +2143,9 @@ void mapmenuactionpress()
map.bg_to_kludge(); map.bg_to_kludge();
game.kludge_ingametemp = game.currentmenuname; game.kludge_ingametemp = game.currentmenuname;
map.nexttowercolour();
map.scrolldir = 0; map.scrolldir = 0;
map.colstate = ((int) (map.colstate / 5)) * 5;
map.nexttowercolour();
// Fix delta rendering glitch // Fix delta rendering glitch
graphics.updatetowerbackground(); graphics.updatetowerbackground();