Merge branch 'master' into jgrpp-beta
# Conflicts: # src/economy.cpp # src/elrail.cpp # src/graph_gui.cpp # src/linkgraph/linkgraph_gui.cpp # src/network/core/game_info.cpp # src/newgrf_station.cpp # src/saveload/saveload.cpp # src/settings.cpp # src/station_cmd.cpp # src/station_gui.cpp # src/strings_func.h # src/table/settings/network_settings.ini # src/table/settings/settings.ini
This commit is contained in:
@@ -153,8 +153,7 @@ void LinkGraphOverlay::RebuildCache(bool incremental)
|
||||
|
||||
auto AddLinks = [&](const Station *from, const Station *to, Point from_pt, Point to_pt, btree::btree_map<std::pair<StationID, StationID>, LinkCacheItem>::iterator insert_iter) {
|
||||
LinkCacheItem *item = nullptr;
|
||||
CargoID c;
|
||||
FOR_EACH_SET_CARGO_ID(c, this->cargo_mask) {
|
||||
for (CargoID c : SetCargoBitIterator(this->cargo_mask)) {
|
||||
if (!CargoSpec::Get(c)->IsValid()) continue;
|
||||
const GoodsEntry &ge = from->goods[c];
|
||||
if (!LinkGraph::IsValidID(ge.link_graph) ||
|
||||
@@ -188,8 +187,7 @@ void LinkGraphOverlay::RebuildCache(bool incremental)
|
||||
StationID from = sta->index;
|
||||
|
||||
uint supply = 0;
|
||||
CargoID c;
|
||||
FOR_EACH_SET_CARGO_ID(c, this->cargo_mask) {
|
||||
for (CargoID c : SetCargoBitIterator(this->cargo_mask)) {
|
||||
if (!CargoSpec::Get(c)->IsValid()) continue;
|
||||
if (!LinkGraph::IsValidID(sta->goods[c].link_graph)) continue;
|
||||
const LinkGraph &lg = *LinkGraph::Get(sta->goods[c].link_graph);
|
||||
|
Reference in New Issue
Block a user