Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
251dad11
Commit
251dad11
authored
7 years ago
by
Michael Steenbeek
Browse files
Options
Download
Email Patches
Plain Diff
Make ride_entry_get_first_non_null_ride_type() take a const ride entry
parent
e568dcab
develop
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/openrct2/ride/ride.c
+1
-1
src/openrct2/ride/ride.c
src/openrct2/ride/ride.h
+1
-1
src/openrct2/ride/ride.h
with
2 additions
and
2 deletions
+2
-2
src/openrct2/ride/ride.c
+
1
-
1
View file @
251dad11
...
...
@@ -8127,7 +8127,7 @@ const char * ride_type_get_enum_name(sint32 rideType)
* Searches for a non-null ride type in a ride entry.
* If none is found, it will still return RIDE_TYPE_NULL.
*/
uint8
ride_entry_get_first_non_null_ride_type
(
rct_ride_entry
*
rideEntry
)
uint8
ride_entry_get_first_non_null_ride_type
(
const
rct_ride_entry
*
rideEntry
)
{
for
(
uint8
i
=
0
;
i
<
MAX_RIDE_TYPES_PER_RIDE_ENTRY
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
src/openrct2/ride/ride.h
+
1
-
1
View file @
251dad11
...
...
@@ -1254,7 +1254,7 @@ bool ride_has_ratings(const Ride * ride);
const
char
*
ride_type_get_enum_name
(
sint32
rideType
);
uint8
ride_entry_get_first_non_null_ride_type
(
rct_ride_entry
*
rideEntry
);
uint8
ride_entry_get_first_non_null_ride_type
(
const
rct_ride_entry
*
rideEntry
);
bool
ride_type_supports_boosters
(
uint8
rideType
);
sint32
get_booster_speed
(
uint8
rideType
,
sint32
rawSpeed
);
void
fix_invalid_vehicle_sprite_sizes
();
...
...
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
Menu
Projects
Groups
Snippets
Help