mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +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:
@@ -2348,6 +2348,11 @@ void Graphics::drawtowerspikes()
|
||||
}
|
||||
|
||||
void Graphics::drawtowerbackground()
|
||||
{
|
||||
SDL_BlitSurface(towerbuffer,NULL, backBuffer,NULL);
|
||||
}
|
||||
|
||||
void Graphics::updatetowerbackground()
|
||||
{
|
||||
int temp;
|
||||
|
||||
@@ -2366,8 +2371,6 @@ void Graphics::drawtowerbackground()
|
||||
}
|
||||
}
|
||||
|
||||
SDL_BlitSurface(towerbuffer,NULL, backBuffer,NULL);
|
||||
|
||||
map.tdrawback = false;
|
||||
}
|
||||
else
|
||||
@@ -2394,8 +2397,6 @@ void Graphics::drawtowerbackground()
|
||||
drawtowertile3(i * 8, 31*8 - (map.bypos % 8) - map.bscroll, temp, map.colstate);
|
||||
}
|
||||
}
|
||||
|
||||
SDL_BlitSurface(towerbuffer,NULL, backBuffer,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user