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
1 changed files with 4 additions and 0 deletions

View File

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