mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user