From 915100b3701e4f62b73d18f879b58b26b9fbf389 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 9 May 2020 12:04:07 -0700 Subject: [PATCH] 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. --- desktop_version/src/Map.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 5d46f305..69539f10 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -833,6 +833,10 @@ void mapclass::resetplayer() obj.entities[i].colour = 0; game.lifeseq = 10; 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 (!was_in_tower && towermode)