1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Un-fix hitbox persistence in map.resetplayer()

It's annoying for casuals to have to close the game if they manage to
get themselves to turn into VVVVVV-Man, but it's amusing enough to
glitchrunners that they mess about with VVVVVV-Man in the main game,
clipping through walls everywhere (well, they call it Big Viridian, but
still).
This commit is contained in:
Misa 2020-06-25 14:56:09 -07:00 committed by Ethan Lee
parent 387ee4dc79
commit e1a114d1a5

View file

@ -792,10 +792,13 @@ void mapclass::resetplayer()
obj.entities[i].colour = 0;
game.lifeseq = 10;
obj.entities[i].invis = true;
obj.entities[i].size = 0;
obj.entities[i].cx = 6;
obj.entities[i].cy = 2;
obj.entities[i].h = 21;
if (!game.glitchrunnermode)
{
obj.entities[i].size = 0;
obj.entities[i].cx = 6;
obj.entities[i].cy = 2;
obj.entities[i].h = 21;
}
// If we entered a tower as part of respawn, reposition camera
if (!was_in_tower && towermode)