mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
De-duplicate vertical moving platform fix for player/SCM
Instead of having two separate functions to move entities along vertical moving platforms, one for the player and one for the supercrewmate, they have been consolidated into one function.
This commit is contained in:
1 parent
1c5b72410a
commit
ceaee392e5
3 files changed
+8
-55
No files matched your search
@@ -892,14 +892,10 @@ void gamelogic()
|
||||
obj.entitymapcollision(i); // Collisions with walls
|
||||
|
||||
obj.createblock(0, obj.entities[i].xp, obj.entities[i].yp, obj.entities[i].w, obj.entities[i].h);
|
||||
obj.movingplatformfix(i, obj.getplayer());
|
||||
if (game.supercrewmate)
|
||||
{
|
||||
obj.movingplatformfix(i);
|
||||
obj.scmmovingplatformfix(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
obj.movingplatformfix(i);
|
||||
obj.movingplatformfix(i, obj.getscm());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user