mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user