GRF: Add extra road/tram type flag: not available to AI/GS

This commit is contained in:
Jonathan G Rennison
2020-10-16 19:09:28 +01:00
parent 6c9988f28b
commit 75a964acb0
9 changed files with 50 additions and 3 deletions

View File

@@ -861,6 +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' : '-');
print(buffer);
seprintf(buffer, lastof(buffer), " Powered: 0x" OTTD_PRINTFHEX64, rti->powered_roadtypes);
print(buffer);
};

View File

@@ -63,6 +63,9 @@ static const RoadTypeInfo _original_roadtypes[] = {
/* flags */
ROTFB_TOWN_BUILD,
/* extra flags */
RXTFB_NONE,
/* cost multiplier */
8,
@@ -143,6 +146,9 @@ static const RoadTypeInfo _original_roadtypes[] = {
/* flags */
ROTFB_CATENARY | ROTFB_NO_HOUSES,
/* extra flags */
RXTFB_NONE,
/* cost multiplier */
16,