1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Fix implicit fallthroughs

This commit is contained in:
Michał Janiszewski
2019-01-02 22:22:52 +01:00
parent b7d1d49956
commit c5e1abcfb1
6 changed files with 6 additions and 7 deletions

View File

@@ -398,6 +398,7 @@ public:
}
window_invalidate(w);
}
break;
}
case INTENT_ACTION_UPDATE_CLIMATE:

View File

@@ -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:

View File

@@ -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();

View File

@@ -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;

View File

@@ -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:

View File

@@ -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: