Skip to content

Commit ce110d5

Browse files
committed
name road object flags AllowUseByAllCompanies
1 parent 94e1067 commit ce110d5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dat/Loaders/RoadObjectLoader.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ internal enum DatRoadObjectFlags : uint16_t
141141
{
142142
None = 0,
143143
IsOneWay = 1 << 0,
144-
UseTracksMenu = 1 << 1, // Whether to show this in the tracks menu or the roads menu
144+
UseTracksMenu = 1 << 1,
145145
unk_02 = 1 << 2,
146146
unk_03 = 1 << 3, // Likely isTram
147-
NoWheelSlipping = 1 << 4, // Vehicles cannot slip on this road
147+
NoWheelSlipping = 1 << 4,
148148
unk_05 = 1 << 5,
149149
IsRoad = 1 << 6, // If not set this is tram track
150-
unk_07 = 1 << 7,
151-
unk_08 = 1 << 8,
150+
AllowUseByAllCompanies = 1 << 7, // If set, all companies can use this road. If unset, only the player company can use it.
151+
CanHaveStreetLights = 1 << 8,
152152
}
153153

154154
internal enum DatTownSize : uint8_t

Definitions/ObjectModels/Objects/Road/RoadObjectFlags.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ public enum RoadObjectFlags : uint16_t
1111
NoWheelSlipping = 1 << 4,
1212
unk_05 = 1 << 5,
1313
IsRoad = 1 << 6, // If not set this is tram track
14-
unk_07 = 1 << 7,
14+
AllowUseByAllCompanies = 1 << 7, // If set, all companies can use this road. If unset, only the player company can use it.
1515
CanHaveStreetLights = 1 << 8,
1616
}

Tests/LoadSaveTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ void assertFunc(LocoObject obj, RoadObject struc) => Assert.Multiple(() =>
703703
| RoadObjectFlags.unk_03
704704
| RoadObjectFlags.NoWheelSlipping
705705
| RoadObjectFlags.IsRoad
706-
| RoadObjectFlags.unk_07
706+
| RoadObjectFlags.AllowUseByAllCompanies
707707
| RoadObjectFlags.CanHaveStreetLights), nameof(struc.Flags));
708708

709709
Assert.That(struc.RoadPieces, Is.EqualTo(

0 commit comments

Comments
 (0)