Added TODO file
This commit is contained in:
@@ -1572,6 +1572,7 @@ void Crawler::LoadLevel(MapName map){
|
||||
TileGroup group;
|
||||
foregroundTilesIncluded.insert({x,y});
|
||||
group.InsertTile(tile);
|
||||
std::cout<<"Insert "<<tile.pos<<std::endl;
|
||||
if(x>0&&foregroundTilesIncluded.find(vi2d{x,y}+vi2d{-1,0})==foregroundTilesIncluded.end())tileGroupChecks.push({x-1,y});
|
||||
if(x<GetCurrentMap().width-1&&foregroundTilesIncluded.find(vi2d{x,y}+vi2d{1,0})==foregroundTilesIncluded.end())tileGroupChecks.push({x+1,y});
|
||||
if(y>0&&foregroundTilesIncluded.find(vi2d{x,y}+vi2d{0,-1})==foregroundTilesIncluded.end())tileGroupChecks.push({x,y-1});
|
||||
@@ -1602,6 +1603,7 @@ void Crawler::LoadLevel(MapName map){
|
||||
IterateThroughOtherLayers({x,y});
|
||||
while(!tileGroupChecks.empty()){
|
||||
vi2d&pos=tileGroupChecks.front();
|
||||
std::cout<<pos<<std::endl;
|
||||
if(IterateThroughOtherLayers(pos,true)){
|
||||
foregroundTilesIncluded.insert({pos.x,pos.y}); //Regardless of if we found a foreground tile or not, we need to add this to not get stuck in an infinite loop.
|
||||
vi2d targetPos=pos+vi2d{-1,0};
|
||||
|
||||
Reference in New Issue
Block a user