You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Building {0} has been placed outside of the map at {1}. Skipping adding it to map."),
412
-
buildingType.ININame,cellCoords));
413
-
return;
414
-
}
415
-
416
-
if(tile.Structures.Count>0)
404
+
if(tile!=null)
417
405
{
418
-
Logger.Log($"NOTE: Building {buildingType.ININame} exists in the cell at {cellCoords} that already contains other buildings: {string.Join(", ",tile.Structures.Select(s =>s.ObjectType.ININame))}");
406
+
isClear=true;
407
+
tile.Structures.Add(building);
419
408
}
420
409
}
421
410
411
+
// Go through foundation cells and register the building to all tiles that are valid on its foundation.
412
+
// If the building was added to no cells (all cells on its foundation were nonexistent),
413
+
// then the building is outside of the map and we should not consider it as belonging to the map.
0 commit comments