diff --git a/src/station_base.h b/src/station_base.h index f4a07b6b14..f09a63bb09 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -20,10 +20,10 @@ #include "linkgraph/linkgraph_type.h" #include "newgrf_storage.h" #include "3rdparty/cpp-btree/btree_map.h" +#include "3rdparty/cpp-btree/btree_set.h" #include "bitmap_type.h" #include #include -#include typedef Pool StationPool; extern StationPool _station_pool; @@ -451,7 +451,7 @@ struct IndustryCompare { bool operator() (const Industry *lhs, const Industry *rhs) const; }; -typedef std::set IndustryList; +typedef btree::btree_set IndustryList; /** Station data structure */ struct Station FINAL : SpecializedStation { diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index fc3ad51805..18d4c95776 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -4068,7 +4068,7 @@ void FindStationsAroundTiles(const TileArea &location, StationList *stations, bo uint x = TileX(location.tile); uint y = TileY(location.tile); - std::set seen_stations; + btree::btree_set seen_stations; /* Scan an area around the building covering the maximum possible station * to find the possible nearby stations. */ diff --git a/src/station_type.h b/src/station_type.h index 2aa51ec8cf..28d4d3fbe1 100644 --- a/src/station_type.h +++ b/src/station_type.h @@ -14,7 +14,7 @@ #include "core/smallstack_type.hpp" #include "tilearea_type.h" -#include +#include "3rdparty/cpp-btree/btree_set.h" typedef uint16 StationID; typedef uint16 RoadStopID; @@ -97,7 +97,7 @@ struct StationCompare { }; /** List of stations */ -typedef std::set StationList; +typedef btree::btree_set StationList; /** * Structure contains cached list of stations nearby. The list