mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Fix #18364: No Too High! or Too Low! error messages when attempting to raise/lower land beyond the limits
This commit is contained in:
@@ -203,6 +203,8 @@ The following people are not part of the development team, but have been contrib
|
||||
* Raymond Zhao (rzhao271)
|
||||
* Xixiang Chen (jacknull1991)
|
||||
* (ReticulatingSplines)
|
||||
* Conrad Cash (HouseholdVTuber)
|
||||
|
||||
|
||||
## Toolchain
|
||||
* (Balletie) - macOS
|
||||
@@ -269,4 +271,4 @@ Representation by Jacqui Lyons at Marjacq Ltd.
|
||||
|
||||
Thanks to: Peter James Adcock, Joe Booth, and John Wardley
|
||||
|
||||
Licensed to Infogrames Interactive Inc.
|
||||
Licensed to Infogrames Interactive Inc.
|
||||
@@ -52,10 +52,10 @@ GameActions::Result LandSetHeightAction::Query() const
|
||||
return GameActions::Result(GameActions::Status::Disallowed, STR_FORBIDDEN_BY_THE_LOCAL_AUTHORITY, STR_NONE);
|
||||
}
|
||||
|
||||
StringId errorTitle = CheckParameters();
|
||||
if (errorTitle != STR_NONE)
|
||||
StringId errorMessage = CheckParameters();
|
||||
if (errorMessage != STR_NONE)
|
||||
{
|
||||
return GameActions::Result(GameActions::Status::Disallowed, errorTitle, STR_NONE);
|
||||
return GameActions::Result(GameActions::Status::Disallowed, STR_NONE, errorMessage);
|
||||
}
|
||||
|
||||
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !gCheatsSandboxMode)
|
||||
@@ -86,10 +86,10 @@ GameActions::Result LandSetHeightAction::Query() const
|
||||
// Check for ride support limits
|
||||
if (!gCheatsDisableSupportLimits)
|
||||
{
|
||||
errorTitle = CheckRideSupports();
|
||||
if (errorTitle != STR_NONE)
|
||||
errorMessage = CheckRideSupports();
|
||||
if (errorMessage != STR_NONE)
|
||||
{
|
||||
return GameActions::Result(GameActions::Status::Disallowed, errorTitle, STR_NONE);
|
||||
return GameActions::Result(GameActions::Status::Disallowed, STR_NONE, errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user