mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
Fix regression: Tower BG lerps in reverse direction
This is the same as commit 70357a65bf
("Fix regression: Warp BG lerps in reverse direction"), but for the
tower background.
This bug is most visible when moving the camera in a tower using
invincibility, or holding down ACTION during the credits scroll.
This commit is contained in:
parent
e6b1b54214
commit
e318d6f176
1 changed files with 1 additions and 1 deletions
|
@ -2854,7 +2854,7 @@ void Graphics::drawtowerbackground(const TowerBG& bg_obj)
|
|||
{
|
||||
clear();
|
||||
|
||||
const int offset = (int) lerp(0, -bg_obj.bscroll);
|
||||
const int offset = (int) lerp(-bg_obj.bscroll, 0);
|
||||
const SDL_Rect srcRect = {0, 8 + offset, SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS};
|
||||
|
||||
copy_texture(bg_obj.texture, &srcRect, NULL);
|
||||
|
|
Loading…
Reference in a new issue