mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Fix implicit fallthroughs
This commit is contained in:
@@ -398,6 +398,7 @@ public:
|
||||
}
|
||||
window_invalidate(w);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case INTENT_ACTION_UPDATE_CLIMATE:
|
||||
|
||||
@@ -876,10 +876,7 @@ const char* cheats_get_cheat_string(int cheat, int edx, int edi)
|
||||
{
|
||||
return language_get_string(STR_CHEAT_MOWED_GRASS);
|
||||
}
|
||||
else if (edx == 1)
|
||||
{
|
||||
return language_get_string(STR_CHEAT_CLEAR_GRASS);
|
||||
}
|
||||
return language_get_string(STR_CHEAT_CLEAR_GRASS);
|
||||
case CHEAT_WATERPLANTS:
|
||||
return language_get_string(STR_CHEAT_WATER_PLANTS);
|
||||
case CHEAT_FIXVANDALISM:
|
||||
|
||||
@@ -47,6 +47,7 @@ void intro_update()
|
||||
case INTRO_STATE_DISCLAIMER_2:
|
||||
// Originally used for the disclaimer text
|
||||
gIntroState = INTRO_STATE_PUBLISHER_BEGIN;
|
||||
[[fallthrough]];
|
||||
case INTRO_STATE_PUBLISHER_BEGIN:
|
||||
load_palette();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
// This string specifies which version of network stream current build uses.
|
||||
// It is used for making sure only compatible builds get connected, even within
|
||||
// single OpenRCT2 version.
|
||||
#define NETWORK_STREAM_VERSION "18"
|
||||
#define NETWORK_STREAM_VERSION "19"
|
||||
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
|
||||
|
||||
static rct_peep* _pickup_peep = nullptr;
|
||||
|
||||
@@ -2048,7 +2048,7 @@ static void vehicle_update_moving_to_end_of_station(rct_vehicle* vehicle)
|
||||
flags = vehicle_update_track_motion(vehicle, &station);
|
||||
if (!(flags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_5))
|
||||
break;
|
||||
// Fall through to next case
|
||||
[[fallthrough]];
|
||||
case RIDE_MODE_BUMPERCAR:
|
||||
case RIDE_MODE_SWING:
|
||||
case RIDE_MODE_ROTATION:
|
||||
|
||||
@@ -670,8 +670,8 @@ static void air_powered_vertical_rc_track_vertical_slope_up(
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
|
||||
Reference in New Issue
Block a user