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

Reset invis and lifeseq when loading in, in mapclass::resetplayer()

When I did #569, I forgot that taking out the code path that set the
player's invis to false meant that the player would still be invisible
upon loading back in to the game if they exited the game while
invisible. Taking out that code path also meant that if game.lifeseq was
nonzero, it wouldn't be reset properly, either. So this fixes those
things.
This commit is contained in:
Misa 2020-12-28 13:23:42 -08:00 committed by Ethan Lee
parent 385f9d244e
commit c52a274a7a

View file

@ -831,6 +831,10 @@ void mapclass::resetplayer(const bool player_died)
game.lifeseq = 10; game.lifeseq = 10;
obj.entities[i].invis = true; obj.entities[i].invis = true;
} }
else
{
obj.entities[i].invis = false;
}
if (!game.glitchrunnermode) if (!game.glitchrunnermode)
{ {
obj.entities[i].size = 0; obj.entities[i].size = 0;