mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
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.
This commit is contained in:
parent
e70586b154
commit
61e5b819e4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue