Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
c9293115
Commit
c9293115
authored
8 years ago
by
Gymnasiast
Browse files
Options
Download
Email Patches
Plain Diff
Make entrance/exit position list use MAX_STATIONS
parent
2c52ef71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/openrct2/ride/ride.c
+4
-2
src/openrct2/ride/ride.c
with
4 additions
and
2 deletions
+4
-2
src/openrct2/ride/ride.c
+
4
-
2
View file @
c9293115
...
...
@@ -4381,7 +4381,8 @@ static void ride_set_boat_hire_return_point(rct_ride *ride, rct_xy_element *star
*/
static
void
ride_set_maze_entrance_exit_points
(
rct_ride
*
ride
)
{
uint16
positions
[
9
];
// Needs room for an entrance and an exit per station, plus one position for the list terminator.
uint16
positions
[(
MAX_STATIONS
*
2
)
+
1
];
// Create a list of all the entrance and exit positions
uint16
*
position
=
positions
;
...
...
@@ -8085,7 +8086,8 @@ void sub_6CB945(sint32 rideIndex)
}
}
uint16
locations
[
9
];
// Needs room for an entrance and an exit per station, plus one position for the list terminator.
uint16
locations
[(
MAX_STATIONS
*
2
)
+
1
];
uint16
*
locationList
=
locations
;
for
(
uint8
stationId
=
0
;
stationId
<
MAX_STATIONS
;
++
stationId
)
{
if
(
ride
->
entrances
[
stationId
].
xy
!=
RCT_XY8_UNDEFINED
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment