Skip to content

Commit fd992e1

Browse files
committed
Use integers for numSegments
1 parent 9c4f674 commit fd992e1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tools/objexport/JsonTypes.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module JsonTypes =
181181
[<DataMember(EmitDefaultValue = false)>]
182182
VEHICLE_ENTRY_FLAG_DODGEM_CAR_PLACEMENT: bool
183183
[<DataMember(EmitDefaultValue = false)>]
184-
loadingWaypointsRatio: float option
184+
numSegments: int option
185185
[<DataMember(EmitDefaultValue = false)>]
186186
loadingPositions: int[]
187187
[<DataMember(EmitDefaultValue = false)>]

tools/objexport/PropertyExtractor.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,16 @@ module PropertyExtractor =
256256
VEHICLE_ENTRY_FLAG_WATER_RIDE = hasFlag 29
257257
VEHICLE_ENTRY_FLAG_GO_KART = hasFlag 30
258258
VEHICLE_ENTRY_FLAG_DODGEM_CAR_PLACEMENT = hasFlag 31
259-
loadingWaypointsRatio =
259+
numSegments =
260260
match loadingWaypoints with
261261
| Some loadingWaypoints ->
262262
if Array.contains TrackTypes.Enterprise ride.Header.TrackTypeList then
263-
Some 2.0
263+
Some 8
264264
else
265265
if int (Array.head loadingWaypoints) = 0 then
266-
Some 0.5
266+
Some 0
267267
else
268-
Some 1.0
268+
Some 4
269269
| None -> None
270270
loadingPositions =
271271
match loadingPositions with

0 commit comments

Comments
 (0)