Skip to content

Commit

Permalink
Consolidated gparkflags check for OpenRCT2#9957
Browse files Browse the repository at this point in the history
  • Loading branch information
gill984 committed Sep 14, 2019
1 parent ed7511b commit 3dd3e4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/openrct2/peep/Guest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,14 +1549,14 @@ bool Guest::DecideAndBuyItem(Ride* ride, int32_t shopItem, money32 price)
loc_69B119:
if (!hasVoucher)
{
if (price != 0)
if ((price != 0) && !(gParkFlags & PARK_FLAGS_NO_MONEY))
{
if ((cash_in_pocket == 0) && !(gParkFlags & PARK_FLAGS_NO_MONEY))
if (cash_in_pocket == 0)
{
InsertNewThought(PEEP_THOUGHT_TYPE_SPENT_MONEY, PEEP_THOUGHT_ITEM_NONE);
return false;
}
if ((price > cash_in_pocket) && !(gParkFlags & PARK_FLAGS_NO_MONEY))
if (price > cash_in_pocket)
{
InsertNewThought(PEEP_THOUGHT_TYPE_CANT_AFFORD, shopItem);
return false;
Expand Down

0 comments on commit 3dd3e4b

Please sign in to comment.