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

Remove now-unused function mapclass::fillareamap()

This is no longer needed since we load the areamap directly, instead of
having strings as unnecessary middlemen for our tilemap.
This commit is contained in:
Misa 2020-05-17 17:07:08 -07:00 committed by Ethan Lee
parent e938bfdb57
commit 664bf8ca6c
2 changed files with 0 additions and 15 deletions

View file

@ -726,19 +726,6 @@ bool mapclass::collide(int x, int y)
return false; return false;
} }
void mapclass::fillareamap(std::vector<std::string>& tmap)
{
for (j = 0; j < 20; j++)
{
std::vector<std::string> maprow = split(tmap[j], ',');
for (int i = 0; i < 20; i++)
{
areamap[i + (j * 20)] = atoi(maprow[i].c_str());
}
}
}
void mapclass::settile(int xp, int yp, int t) void mapclass::settile(int xp, int yp, int t)
{ {
if (xp >= 0 && xp < 40 && yp >= 0 && yp < 29+extrarow) if (xp >= 0 && xp < 40 && yp >= 0 && yp < 29+extrarow)

View file

@ -58,8 +58,6 @@ public:
bool collide(int x, int y); bool collide(int x, int y);
void fillareamap(std::vector<std::string>& tmap);
void settile(int xp, int yp, int t); void settile(int xp, int yp, int t);