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

Commit 807970f

Browse files
committed
Compare float to float
1 parent a529576 commit 807970f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Entities/Activity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ void Activity::Clear() {
808808
std::string craftText = "Returned craft";
809809
if (!orbitedCraft->IsInventoryEmpty()) { craftText += " + cargo"; }
810810

811-
if (totalValue > 0) {
811+
if (totalValue > 0.0F) {
812812
m_TeamFunds[orbitedCraftTeam] += totalValue;
813813
std::snprintf(messageString, sizeof(messageString), "%s added %.0f oz to funds!", craftText.c_str(), totalValue);
814814
}
@@ -818,7 +818,7 @@ void Activity::Clear() {
818818
m_BrainEvacuated[player] = true;
819819
g_FrameMan.ClearScreenText(ScreenOfPlayer(ScreenOfPlayer(static_cast<Players>(player))));
820820
g_FrameMan.SetScreenText("YOUR BRAIN HAS BEEN EVACUATED BACK INTO ORBIT!", ScreenOfPlayer(static_cast<Players>(player)), 0, 3500);
821-
} else if (m_Team[player] == orbitedCraftTeam && totalValue > 0) {
821+
} else if (m_Team[player] == orbitedCraftTeam && totalValue > 0.0F) {
822822
g_FrameMan.ClearScreenText(ScreenOfPlayer(ScreenOfPlayer(static_cast<Players>(player))));
823823
g_FrameMan.SetScreenText(messageString, ScreenOfPlayer(static_cast<Players>(player)), 0, 3500);
824824
m_MessageTimer[player].Reset();

0 commit comments

Comments
 (0)