mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix tower quicksave bug (only appeared in some builds)
I ran the game through Valgrind to catch various issues. One thing caught my attention -- map.resumedelay. This is used by The Tower/etc to add a delay before the game is resumed (probably for camera controls delaying it) for spawning the player. This variable was uninitialized. Notably, if I explicitly set it to 592851 or similar, it reproduces the bug, even if I cannot reproduce it with my typical compilation flags. So fixing this by initializing it to 0, alongside some other Valgrind warnings, should fix the problem entirely.
This commit is contained in:
committed by
Ethan Lee
parent
2ec1106741
commit
9296547feb
@@ -219,7 +219,7 @@ public:
|
||||
std::vector<int> customcollect;
|
||||
|
||||
int nblocks;
|
||||
bool skipblocks, skipdirblocks;
|
||||
bool skipblocks = false, skipdirblocks;
|
||||
|
||||
int platformtile;
|
||||
bool vertplatforms, horplatforms;
|
||||
|
||||
Reference in New Issue
Block a user