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:
Misa authored and Ethan Lee committed 2020-09-25 13:37:38 -04:00
1 parent 1c5b72410a
commit ceaee392e5
3 files changed
+8 -55

No files matched your search

+2 -6
View File
@@ -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());
}
}
}