Refactor Spacestation2.cpp to not use strings for tilemaps

They are now stored in const int arrays instead. Except for the Prize
for the Reckless room, which I made sure had its spikes removed in No
Death Mode and the Time Trial.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-05-17 22:03:29 -04:00
1 parent 781aa38e1f
commit 8a573af273
3 files changed
+2505 -2171

No files matched your search

+1 -2
View File
@@ -1379,8 +1379,7 @@ void mapclass::loadlevel(int rx, int ry)
if (warpx && warpy) background = 5; if (warpx && warpy) background = 5;
break; break;
case 5: //Space station case 5: //Space station
tmap = spacestation2.loadlevel(rx, ry); contents = spacestation2.loadlevel(rx, ry);
fillcontent(tmap);
roomname = spacestation2.roomname; roomname = spacestation2.roomname;
tileset = 0; tileset = 0;
break; break;
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -10,7 +10,7 @@
class spacestation2class class spacestation2class
{ {
public: public:
std::vector<std::string> loadlevel(int rx, int ry); std::vector<int> loadlevel(int rx, int ry);
std::string roomname; std::string roomname;
}; };