1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +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:
Misa 2023-12-29 14:11:08 -08:00
parent e6b1b54214
commit e318d6f176

View file

@ -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);