Skip to content

Commit

Permalink
Hold off blocking yardmap inverse blocking building protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsquirrel1 committed Jul 7, 2024
1 parent 9c07054 commit a39e641
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rts/Sim/Misc/GroundBlockingObjectMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ void CGroundBlockingObjectMap::AddGroundBlockingObject(CSolidObject* object, con
objectCol.SetBlockBuildingAt(x, z);
continue;
}
if (yardmapState & (YARDMAP_YARD|YARDMAP_YARDINV)) {
objectCol.SetBlockBuildingAt(x, z);
// may still need to be added to ground map.
}
// Hold off on this because BAR is using these yardmap types for controlling building upgrades.
// if (yardmapState & (YARDMAP_YARD|YARDMAP_YARDINV)) {
// objectCol.SetBlockBuildingAt(x, z);
// // may still need to be added to ground map.
// }

// unit yardmaps always contain sx=UnitDef::xsize * sz=UnitDef::zsize
// cells (the unit->moveDef footprint can have different dimensions)
Expand Down

2 comments on commit a39e641

@12345swordy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't commit comment out code!

@sprunk
Copy link
Collaborator

@sprunk sprunk commented on a39e641 Jul 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine, it is supposed to be brought back at some point

Please sign in to comment.