mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Use bool type for boolean logic
This commit is contained in:
committed by
Michael Steenbeek
parent
3dd98c7aa2
commit
c7417e11a4
@@ -119,8 +119,8 @@ rct_sprite *get_sprite(size_t sprite_idx) {
|
||||
return &sprite_list[sprite_idx];
|
||||
}
|
||||
|
||||
int tile_element_is_last_for_tile(const rct_tile_element *element) {
|
||||
return element->flags & TILE_ELEMENT_FLAG_LAST_TILE;
|
||||
bool tile_element_is_last_for_tile(const rct_tile_element *element) {
|
||||
return (element->flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0;
|
||||
}
|
||||
|
||||
int tile_element_get_type(const rct_tile_element *element) {
|
||||
@@ -293,4 +293,4 @@ void track_element_set_cable_lift(rct_tile_element * trackElement)
|
||||
void track_element_clear_cable_lift(rct_tile_element * trackElement)
|
||||
{
|
||||
trackElement->properties.track.colour &= ~TRACK_ELEMENT_COLOUR_FLAG_CABLE_LIFT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user