1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-10 19:09:45 +01:00

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 2020-06-22 20:49:16 -07:00 committed by Ethan Lee
parent 8ed9ee1ca2
commit ccd6cfab7f
2 changed files with 3 additions and 1 deletions

View file

@ -7762,4 +7762,5 @@ void Game::returntopausemenu()
returntomenu(kludge_ingametemp);
gamestate = MAPMODE;
map.kludge_to_bg();
map.tdrawback = true;
}

View file

@ -2143,8 +2143,9 @@ void mapmenuactionpress()
map.bg_to_kludge();
game.kludge_ingametemp = game.currentmenuname;
map.nexttowercolour();
map.scrolldir = 0;
map.colstate = ((int) (map.colstate / 5)) * 5;
map.nexttowercolour();
// Fix delta rendering glitch
graphics.updatetowerbackground();