Add nearby stations to town debug window
This commit is contained in:
@@ -615,6 +615,13 @@ class NIHTown : public NIHelper {
|
||||
SetDParam(0, t->cargo_accepted_total);
|
||||
b = GetString(b, STR_JUST_CARGO_LIST, lastof(buffer));
|
||||
print(buffer);
|
||||
|
||||
seprintf(buffer, lastof(buffer), " Nearby stations: %u", (uint) t->stations_near.size());
|
||||
print(buffer);
|
||||
for (const Station *st : t->stations_near) {
|
||||
seprintf(buffer, lastof(buffer), " %u: %s", st->index, st->GetCachedName());
|
||||
print(buffer);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user