1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Refactor WarpClass.cpp to not use strings for tilemaps

They now use a constant int array instead.
This commit is contained in:
Misa 2020-05-17 14:21:52 -07:00 committed by Ethan Lee
parent cc0d5d1d79
commit 5126c4dbc4
3 changed files with 797 additions and 715 deletions

View file

@ -1364,8 +1364,7 @@ void mapclass::loadlevel(int rx, int ry)
obj.createentity(280, 3216, 9, 8); // (shiny trinket)
break;
case 4: //The Warpzone
tmap = warplevel.loadlevel(rx, ry);
fillcontent(tmap);
contents = warplevel.loadlevel(rx, ry);
roomname = warplevel.roomname;
tileset = 1;
background = 3;

File diff suppressed because it is too large Load diff

View file

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