Fix player being invisible upon loading into game again

When I did #567, I didn't test it. And I should have tested it, because
it made the player invisible. This is because map.resetplayer() also
sets the invis attribute of the player to true as well, and I only undid
it setting game.lifeseq to 10.

So instead, I'll just add a flag to map.resetplayer() that by default
doesn't set game.lifeseq or the player's invis attribute. And I tested
it this time, and it works fine. I tested both respawning after death
and exiting to the menu and loading in the game again.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-12-28 16:22:13 -05:00
1 parent eb7b540346
commit 385f9d244e
4 files changed
+12 -27

No files matched your search

+1 -1
View File
@@ -470,7 +470,7 @@ void gamelogic()
game.gravitycontrol = game.savegc;
graphics.textboxremove();
map.resetplayer();
map.resetplayer(true);
}
}
}