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
1 changed files with 1 additions and 1 deletions

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