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:
parent
385f9d244e
commit
c52a274a7a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue