Skip to content

Commit

Permalink
remove dead code from GameBuildings
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed Jan 13, 2025
1 parent 7b1881a commit fa85535
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions GameBuildings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ using namespace DFHack;
using namespace df::enums;
using df::global::world;

namespace
{
bool tileHasBridge(Tile* b)
{
if (!b) {
return 0;
}
return b->building.type == df::enums::building_type::Bridge;
}
}

dirTypes findWallCloseTo(WorldSegment* segment, Tile* b)
{
uint32_t x,y,z;
Expand Down Expand Up @@ -109,7 +98,7 @@ void MergeBuildingsToSegment(std::vector<Buildings::t_building>* buildings, Worl
z2 = well_building->bucket_z;
}

for (int32_t zz = copiedbuilding->z; zz >= z2; zz--) {
for (uint32_t zz = copiedbuilding->z; zz >= z2; zz--) {
if (copiedbuilding->type == df::enums::building_type::Civzone ||
copiedbuilding->type == df::enums::building_type::Stockpile ||
copiedbuilding->type == df::enums::building_type::FarmPlot) {
Expand Down

0 comments on commit fa85535

Please sign in to comment.