mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Fix inconsistencies with y-positions of spawns
It seems like the start point of a custom level and all checkpoints in the game end up putting your spawn point one pixel away from the surface it touches, which seems like an oversight. I'm going to enforce some consistency here and make it so that all spawn points, whenever you start from a start point or a checkpoint, will always be correctly positioned flush with the surface they're standing on, and not one pixel more or less than that.
This commit is contained in:
@@ -2619,12 +2619,12 @@ bool entityclass::updateentities( int i )
|
||||
|
||||
if (entities[i].tile == 20)
|
||||
{
|
||||
game.savey = entities[i].yp - 1;
|
||||
game.savey = entities[i].yp - 2;
|
||||
game.savegc = 1;
|
||||
}
|
||||
else if (entities[i].tile == 21)
|
||||
{
|
||||
game.savey = entities[i].yp-8;
|
||||
game.savey = entities[i].yp - 7;
|
||||
game.savegc = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user