mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Move tower background update code to logic functions
Otherwise it'll go really really quickly, which is not good.
This commit is contained in:
@@ -12,6 +12,11 @@ void titlelogic()
|
||||
map.bypos -= 2;
|
||||
map.bscroll = -2;
|
||||
|
||||
if (!game.colourblindmode)
|
||||
{
|
||||
graphics.updatetowerbackground();
|
||||
}
|
||||
|
||||
if (game.menucountdown > 0)
|
||||
{
|
||||
game.menucountdown--;
|
||||
@@ -96,6 +101,11 @@ void gamecompletelogic()
|
||||
map.bscroll = +1;
|
||||
}
|
||||
|
||||
if (!game.colourblindmode)
|
||||
{
|
||||
graphics.updatetowerbackground();
|
||||
}
|
||||
|
||||
if (graphics.fademode == 1)
|
||||
{
|
||||
//Fix some graphical things
|
||||
@@ -1542,7 +1552,14 @@ void gamelogic()
|
||||
|
||||
if (!game.colourblindmode)
|
||||
{
|
||||
graphics.updatebackground(map.background);
|
||||
if (map.towermode)
|
||||
{
|
||||
graphics.updatetowerbackground();
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.updatebackground(map.background);
|
||||
}
|
||||
}
|
||||
|
||||
if (!game.blackout)
|
||||
|
||||
Reference in New Issue
Block a user