mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Set oldxp/oldyp when player teleports through warp token
This fixes the bug where it would appear as if they "zipped" to the destination from the warp token. Fixes #384.
This commit is contained in:
@@ -893,6 +893,8 @@ void mapclass::warpto(int rx, int ry , int t, int tx, int ty)
|
|||||||
{
|
{
|
||||||
obj.entities[t].xp = tx * 8;
|
obj.entities[t].xp = tx * 8;
|
||||||
obj.entities[t].yp = (ty * 8) - obj.entities[t].h;
|
obj.entities[t].yp = (ty * 8) - obj.entities[t].h;
|
||||||
|
obj.entities[t].oldxp = obj.entities[t].xp;
|
||||||
|
obj.entities[t].oldyp = obj.entities[t].yp;
|
||||||
}
|
}
|
||||||
game.gravitycontrol = 0;
|
game.gravitycontrol = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user