Merge branch 'master' into jgrpp
# Conflicts: # src/industry_cmd.cpp # src/station_cmd.cpp # src/station_func.h
This commit is contained in:
@@ -1485,7 +1485,11 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
|
||||
CCLOG("industry neutral station stations_near mismatch: ind %i, (recalc size: %u, neutral size: %u)", (int)ind->index, (uint)ind->stations_near.size(), (uint)stlist.size());
|
||||
}
|
||||
} else {
|
||||
FindStationsAroundTiles(ind->location, &stlist, false, ind->index);
|
||||
ForAllStationsAroundTiles(ind->location, [ind, &stlist](Station *st, TileIndex tile) {
|
||||
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != ind->index) return false;
|
||||
stlist.insert(st);
|
||||
return true;
|
||||
});
|
||||
if (ind->stations_near != stlist) {
|
||||
CCLOG("industry FindStationsAroundTiles mismatch: ind %i, (recalc size: %u, find size: %u)", (int)ind->index, (uint)ind->stations_near.size(), (uint)stlist.size());
|
||||
}
|
||||
|
Reference in New Issue
Block a user