Added TODO file

This commit is contained in:
2023-12-22 17:19:54 -06:00
parent b81058e296
commit e89d18d84f
6 changed files with 55 additions and 2 deletions
+2
View File
@@ -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};