Skip to content

Commit

Permalink
Fix Roadsegment Repair
Browse files Browse the repository at this point in the history
  • Loading branch information
kgd192 committed Jan 17, 2024
1 parent 4649adb commit 3ef0ee1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions game/state/city/scenery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,10 @@ void Scenery::repair(GameState &state)
{
building->buildingPartChange(state, initialPosition, true);
}
if (this->type && this->type->tile_type == SceneryTileType::TileType::Road)
{
state.current_city->notifyRoadChange(this->getPosition(), true);
}
map.clearPathCaches();
}

Expand Down

0 comments on commit 3ef0ee1

Please sign in to comment.