1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

Fix #14710: Preview not shown without enough money (#14711)

* Fix #14710: Preview not shown without enough money

* Bump up network version

* Add changelog.txt entry
This commit is contained in:
ζeh Matt
2021-05-23 15:45:48 +03:00
committed by GitHub
parent 236c80fea1
commit 38c7a70025
3 changed files with 4 additions and 2 deletions

View File

@@ -20,6 +20,7 @@
- Fix: [#14587] Confusing message when joining server with mismatched network version.
- Fix: [#14604] American-style Steam Trains are not imported correctly from RCT1 saves.
- Fix: [#14638] The “About OpenRCT2” window cannot be themed.
- Fix: [#14710] Ride/Track Design preview does not show if it costs more money than available.
- Improved: [#14712]: Improve startup times.
0.3.3 (2021-03-13)

View File

@@ -310,7 +310,8 @@ namespace GameActions
if (result->Error == GameActions::Status::Ok)
{
if (!finance_check_affordability(result->Cost, action->GetFlags()))
if ((action->GetFlags() & GAME_COMMAND_FLAG_APPLY)
&& !finance_check_affordability(result->Cost, action->GetFlags()))
{
result->Error = GameActions::Status::InsufficientFunds;
result->ErrorTitle = STR_CANT_DO_THIS;

View File

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