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

Reset vvvvvvman size in mapclass::resetplayer()

It's a bit annoying how vvvvvvman status is preserved between in-game
sessions, and the only thing reset is the color. This is annoying
because it means you have to close the game to reset vvvvvvman.

But now it'll be reset properly. I chose to put this reset code in
mapclass::resetplayer() instead of scriptclass::hardreset() because it
seemed like the more appropriate place. It's where all other properties
of the player are reset, after all.
This commit is contained in:
Misa 2020-05-09 12:04:07 -07:00 committed by Ethan Lee
parent 269ad18b86
commit 915100b370

View file

@ -833,6 +833,10 @@ void mapclass::resetplayer()
obj.entities[i].colour = 0; obj.entities[i].colour = 0;
game.lifeseq = 10; game.lifeseq = 10;
obj.entities[i].invis = true; 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 we entered a tower as part of respawn, reposition camera // If we entered a tower as part of respawn, reposition camera
if (!was_in_tower && towermode) if (!was_in_tower && towermode)