From 59dbad43d7f59b4a29b867129b81599a4dcd7114 Mon Sep 17 00:00:00 2001 From: X-TheDark Date: Wed, 5 Oct 2016 13:46:14 +0300 Subject: [PATCH] Properly brackets the conditionals for if --- code/modules/stock_market/stocks.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/stock_market/stocks.dm b/code/modules/stock_market/stocks.dm index b75a5e56a16..9969136ec51 100644 --- a/code/modules/stock_market/stocks.dm +++ b/code/modules/stock_market/stocks.dm @@ -90,7 +90,7 @@ /datum/stock/proc/frc(amt) var/shares = available_shares + outside_shareholders * average_shares var/fr = amt / 100 / shares * fluctuational_coefficient * fluctuation_rate * max(-(current_trend / 100), 1) - if (fr < 0 && speculation < 0 || fr > 0 && speculation > 0) + if ((fr < 0 && speculation < 0) || (fr > 0 && speculation > 0)) fr *= max(abs(speculation) / 5, 1) else fr /= max(abs(speculation) / 5, 1)