mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +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:
@@ -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