Add road/tram type properties to set road vehicle collision mode
This commit is contained in:
@@ -1795,6 +1795,8 @@ class NIHRoadType : public NIHelper {
|
||||
HasBit(rti->extra_flags, RXTF_NOT_AVAILABLE_AI_GS) ? 's' : '-',
|
||||
HasBit(rti->extra_flags, RXTF_NO_TOWN_MODIFICATION) ? 't' : '-');
|
||||
output.print(buffer);
|
||||
seprintf(buffer, lastof(buffer), " Collision mode: %u", rti->collision_mode);
|
||||
output.print(buffer);
|
||||
seprintf(buffer, lastof(buffer), " Powered: 0x" OTTD_PRINTFHEX64, rti->powered_roadtypes);
|
||||
output.print(buffer);
|
||||
PrintTypeLabels(buffer, lastof(buffer), rti->label, (const uint32*) rti->alternate_labels.data(), rti->alternate_labels.size(), output.print);
|
||||
|
@@ -66,6 +66,9 @@ static const RoadTypeInfo _original_roadtypes[] = {
|
||||
/* extra flags */
|
||||
RXTFB_NONE,
|
||||
|
||||
/* collision mode */
|
||||
RTCM_NORMAL,
|
||||
|
||||
/* cost multiplier */
|
||||
8,
|
||||
|
||||
@@ -149,6 +152,9 @@ static const RoadTypeInfo _original_roadtypes[] = {
|
||||
/* extra flags */
|
||||
RXTFB_NONE,
|
||||
|
||||
/* collision mode */
|
||||
RTCM_NORMAL,
|
||||
|
||||
/* cost multiplier */
|
||||
16,
|
||||
|
||||
|
Reference in New Issue
Block a user