GRF: Add extra road/tram type flag: towns cannot modify tiles

This commit is contained in:
Jonathan G Rennison
2020-10-16 22:12:57 +01:00
parent 75a964acb0
commit 946442ab6b
9 changed files with 48 additions and 18 deletions

View File

@@ -861,8 +861,9 @@ class NIHRoadType : public NIHelper {
HasBit(rti->flags, ROTF_HIDDEN) ? 'h' : '-',
HasBit(rti->flags, ROTF_TOWN_BUILD) ? 'T' : '-');
print(buffer);
seprintf(buffer, lastof(buffer), " Extra Flags: %c",
HasBit(rti->extra_flags, RXTF_NOT_AVAILABLE_AI_GS) ? 's' : '-');
seprintf(buffer, lastof(buffer), " Extra Flags: %c%c",
HasBit(rti->extra_flags, RXTF_NOT_AVAILABLE_AI_GS) ? 's' : '-',
HasBit(rti->extra_flags, RXTF_NO_TOWN_MODIFICATION) ? 't' : '-');
print(buffer);
seprintf(buffer, lastof(buffer), " Powered: 0x" OTTD_PRINTFHEX64, rti->powered_roadtypes);
print(buffer);