1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-08 18:09:45 +01:00

Refactor Labclass.cpp to not use strings for tilemaps

They now use a const int array instead.
This commit is contained in:
Misa 2020-05-17 13:48:07 -07:00 committed by Ethan Lee
parent f617b6d695
commit cc0d5d1d79
3 changed files with 1509 additions and 1325 deletions

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@
class labclass
{
public:
std::vector<std::string> loadlevel(int rx, int ry);
std::vector<int> loadlevel(int rx, int ry);
std::string roomname;
int coin, rcol;

View file

@ -1319,8 +1319,7 @@ void mapclass::loadlevel(int rx, int ry)
}
break;
case 2: //The Lab
tmap = lablevel.loadlevel(rx, ry);
fillcontent(tmap);
contents = lablevel.loadlevel(rx, ry);
roomname = lablevel.roomname;
tileset = 1;
background = 2;