Refactor Otherlevel.cpp to not use strings for tilemaps

Instead, they're all held in a constant int array instead.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-05-17 22:03:29 -04:00
1 parent 8a573af273
commit ec72031cfd
3 files changed
+7840 -6763

No files matched your search

+1 -2
View File
@@ -1306,8 +1306,7 @@ void mapclass::loadlevel(int rx, int ry)
case 1: //World Map
tileset = 1;
extrarow = 1;
tmap = otherlevel.loadlevel(rx, ry);
fillcontent(tmap);
contents = otherlevel.loadlevel(rx, ry);
roomname = otherlevel.roomname;
tileset = otherlevel.roomtileset;
//do the appear/remove roomname here
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -27,7 +27,7 @@ public:
};
void addline(std::string t);
std::vector<std::string> loadlevel(int rx, int ry);
std::vector<int> loadlevel(int rx, int ry);
std::string roomname;