mirror of https://github.com/OpenRCT2/OpenRCT2.git
* Fix #12895: only update ride mechanic status when advancing state * add changelog message * Change changelog wording * Bump network version Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
This commit is contained in:
parent
1f55720bb5
commit
d79308ef40
|
@ -3,6 +3,7 @@
|
|||
- Feature: [#13057] Make GameAction flags accessible by plugins.
|
||||
- Feature: [#13376] Open custom window at specified tab.
|
||||
- Change: [#13346] Change FootpathScenery to FootpathAddition in all occurrences.
|
||||
- Fix: [#12895] Mechanics are called to repair rides that have already been fixed.
|
||||
- Fix: [#13334] Uninitialised variables in CustomTabDesc.
|
||||
- Fix: [#13342] Rename tabChange to onTabChange in WindowDesc interface.
|
||||
- Improved: [#12917] Changed peep movement so that they stay more spread out over the full width of single tile paths.
|
||||
|
|
|
@ -34,7 +34,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 "2"
|
||||
#define NETWORK_STREAM_VERSION "3"
|
||||
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
|
||||
|
||||
static Peep* _pickup_peep = nullptr;
|
||||
|
|
|
@ -2579,15 +2579,13 @@ bool Staff::UpdateFixingFinishFixOrInspect(bool firstRun, int32_t steps, Ride* r
|
|||
{
|
||||
if (!firstRun)
|
||||
{
|
||||
ride->mechanic_status = RIDE_MECHANIC_STATUS_UNDEFINED;
|
||||
|
||||
if (State == PeepState::Inspecting)
|
||||
{
|
||||
UpdateRideInspected(CurrentRide);
|
||||
|
||||
StaffRidesInspected++;
|
||||
WindowInvalidateFlags |= RIDE_INVALIDATE_RIDE_INCOME | RIDE_INVALIDATE_RIDE_LIST;
|
||||
|
||||
ride->mechanic_status = RIDE_MECHANIC_STATUS_UNDEFINED;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2610,7 +2608,7 @@ bool Staff::UpdateFixingFinishFixOrInspect(bool firstRun, int32_t steps, Ride* r
|
|||
}
|
||||
|
||||
ride_fix_breakdown(ride, steps);
|
||||
|
||||
ride->mechanic_status = RIDE_MECHANIC_STATUS_UNDEFINED;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue