Fix #8882: Submarine Ride does not count as indoors (#8964)

This commit is contained in:
Michael Steenbeek 2019-03-27 10:09:14 +01:00 committed by GitHub
parent 519ab51a4e
commit d88d80335d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@
- Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
- Fix: [#8873] Potential crash when placing footpaths.
- Fix: [#8882] Submarine Ride does not count as indoors (original bug).
- Fix: [#8900] Peep tracking is not synchronized.
- Fix: [#8947] Detection of AVX2 support.
- Improved: Allow the use of numpad enter key for console and chat.

View File

@ -31,7 +31,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 "10"
#define NETWORK_STREAM_VERSION "11"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

View File

@ -4127,7 +4127,8 @@ static void ride_ratings_calculate_submarine_ride(Ride* ride)
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
ride->inversions &= 0x1F;
ride->inversions |= 0 << 5;
// Originally, this was always to zero, even though the default vehicle is completely enclosed.
ride->inversions |= get_num_of_sheltered_eighths(ride) << 5;
}
static void ride_ratings_calculate_river_rafts(Ride* ride)