mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -2854,7 +2854,7 @@ void Graphics::drawtowerbackground(const TowerBG& bg_obj)
|
|||||||
{
|
{
|
||||||
clear();
|
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};
|
const SDL_Rect srcRect = {0, 8 + offset, SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS};
|
||||||
|
|
||||||
copy_texture(bg_obj.texture, &srcRect, NULL);
|
copy_texture(bg_obj.texture, &srcRect, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user