mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Check industry FindStationsAroundTiles in CheckCaches
This commit is contained in:
parent
c13ee0979f
commit
c4d9404d79
@ -1388,6 +1388,11 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
|
||||
if (old_industry_stations_nears[i] != ind->stations_near) {
|
||||
CCLOG("industry stations_near mismatch: ind %i, (old size: %u, new size: %u)", (int)ind->index, (uint)old_industry_stations_nears[i].size(), (uint)ind->stations_near.size());
|
||||
}
|
||||
StationList stlist;
|
||||
FindStationsAroundTiles(ind->location, &stlist, false);
|
||||
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());
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user