mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Re-add original oldxp/oldyp assignments in gotoroom()
The intent of #504 was to make it so oldxp/oldyp would never be messed with for over-30-FPS stuff, but I forgot that I changed these assignments in my over-30-FPS patch when I was doing #504. So these assignments have been restored to the way they were in 2.2, and is fixed now.
This commit is contained in:
parent
3a8b381dbc
commit
c371d30509
1 changed files with 2 additions and 0 deletions
|
@ -1100,6 +1100,8 @@ void mapclass::gotoroom(int rx, int ry)
|
|||
temp = obj.getplayer();
|
||||
if(INBOUNDS_VEC(temp, obj.entities))
|
||||
{
|
||||
obj.entities[temp].oldxp = obj.entities[temp].xp;
|
||||
obj.entities[temp].oldyp = obj.entities[temp].yp;
|
||||
obj.entities[temp].lerpoldxp = obj.entities[temp].xp - int(obj.entities[temp].vx);
|
||||
obj.entities[temp].lerpoldyp = obj.entities[temp].yp - int(obj.entities[temp].vy);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue