Initialize level data with 0s in M&P

Following discussion on TerryCavanagh/VVVVVV#153, I suggested that
instead of reverting my M&P guards from TerryCavanagh/VVVVVV#124 (which
would only revert it for The Final Level, The Lab, Overworld, and The
Tower, leaving Space Station 1 & 2 and The Warp Zone alone which could
potentially cause the same problem that motivated
TerryCavanagh/VVVVVV#153), we should initialize the map data with 0s
instead.
This commit is contained in:
Info Teddy
2020-02-08 11:32:32 -08:00
committed by Ethan Lee
parent dd7170dc59
commit 9642921a64
7 changed files with 51 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ std::vector<std::string> warpclass::loadlevel(int rx, int ry , Game& game, entit
switch(t)
{
#if !defined(MAKEANDPLAY)
#if !defined(MAKEANDPLAY)
case rn(50,50):
tmap.push_back("120,120,120,120,120,120,120,120,120,120,120,120,120,200,80,202,0,0,0,0,0,0,0,0,200,80,202,120,120,120,120,120,120,120,120,120,120,120,120,120");
@@ -1026,7 +1026,13 @@ std::vector<std::string> warpclass::loadlevel(int rx, int ry , Game& game, entit
game.test = true;
game.teststring = "ERROR: Map not found in Warp Area";
break;
#endif
#else
default:
for (int j = 0; j < 30; j++)
{
tmap.push_back("0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0");
}
#endif
}
return tmap;