Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 537904f

Browse files
committed
2 parents abd694a + f548bd0 commit 537904f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Activities/GameActivity.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,13 @@ void GameActivity::Update()
17701770
lzOffsetY += m_AIReturnCraft[player] ? -32.0F : 32.0F;
17711771
}
17721772
m_LandingZone[player].m_Y = g_SceneMan.FindAltitude(m_LandingZone[player], g_SceneMan.GetSceneHeight(), 10) + lzOffsetY;
1773-
CreateDelivery(player);
1773+
1774+
if (m_pBuyGUI[player]->GetTotalOrderCost() > GetTeamFunds(team)) {
1775+
g_GUISound.UserErrorSound()->Play(player);
1776+
m_FundsChanged[team] = true;
1777+
} else {
1778+
CreateDelivery(player);
1779+
}
17741780
// Revert the Y offset so that the cursor doesn't flinch.
17751781
m_LandingZone[player].m_Y -= lzOffsetY;
17761782
}

0 commit comments

Comments
 (0)