From 61e5b819e490f90c30d1a3b1386e1d94e61016f2 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 18 Mar 2021 14:10:55 -0700 Subject: [PATCH] Fix VVVVVV-Man not being interpolated This is because it directly uses the xp and yp of the player instead of the interpolated xp and yp. Whoops. --- desktop_version/src/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 187c86ac..af33efc1 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1999,7 +1999,7 @@ void Graphics::drawentity(const int i, const int yoff) tpoint.x = xp; tpoint.y = yp - yoff; setcolreal(obj.entities[i].realcol); - setRect(drawRect, Sint16(obj.entities[i].xp ), Sint16(obj.entities[i].yp - yoff), Sint16(sprites_rect.x * 6), Sint16(sprites_rect.y * 6 ) ); + setRect(drawRect, Sint16(xp), Sint16(yp - yoff), Sint16(sprites_rect.x * 6), Sint16(sprites_rect.y * 6 ) ); SDL_Surface* TempSurface = ScaleSurface( spritesvec[obj.entities[i].drawframe], 6 * sprites_rect.w,6* sprites_rect.h ); BlitSurfaceColoured(TempSurface, NULL , backBuffer, &drawRect, ct ); SDL_FreeSurface(TempSurface);