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

Fix #14296: Allow early scenario completion in multiplayer

This commit is contained in:
Maximilian Bottin
2021-03-18 20:30:11 +01:00
committed by GitHub
parent e89c37e7ae
commit 6f28914f61
6 changed files with 48 additions and 8 deletions

View File

@@ -13,6 +13,7 @@
#include "../interface/Window.h"
#include "../management/Finance.h"
#include "../peep/Peep.h"
#include "../scenario/Scenario.h"
#include "../util/Util.h"
#include "../world/Park.h"
@@ -236,6 +237,9 @@ GameActions::Result::Ptr ScenarioSetSettingAction::Execute() const
gParkFlags &= ~PARK_FLAGS_DIFFICULT_GUEST_GENERATION;
}
break;
case ScenarioSetSetting::AllowEarlyCompletion:
gAllowEarlyCompletionInNetworkPlay = _value;
break;
default:
log_error("Invalid setting: %u", _setting);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);