mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
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:
@@ -18,7 +18,7 @@ std::vector<std::string> spacestation2class::loadlevel(int rx, int ry, Game& gam
|
||||
|
||||
switch(t)
|
||||
{
|
||||
#if !defined(MAKEANDPLAY)
|
||||
#if !defined(MAKEANDPLAY)
|
||||
case rn(50,50):
|
||||
|
||||
tmap.push_back("492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492,492");
|
||||
@@ -3213,7 +3213,13 @@ std::vector<std::string> spacestation2class::loadlevel(int rx, int ry, Game& gam
|
||||
roomname = "Outer Space";
|
||||
obj.fatal_bottom();
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user