1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

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 2020-05-17 16:43:32 -07:00 committed by Ethan Lee
parent 8a573af273
commit ec72031cfd
3 changed files with 7840 additions and 6763 deletions

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

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;