Floor ante number to prevent nil return value
This commit is contained in:
parent
4df5cdfc2b
commit
511187e2e5
1 changed files with 2 additions and 1 deletions
|
|
@ -310,7 +310,8 @@ function Game:update(dt)
|
||||||
|
|
||||||
orig_update(self, dt)
|
orig_update(self, dt)
|
||||||
|
|
||||||
local blind = get_blind_amount(G.GAME.round_resets.ante)
|
local ante = G.GAME.round_resets.ante
|
||||||
|
local blind = get_blind_amount((ante >= 1 and ante <= 8) and math.floor(ante) or ante)
|
||||||
G.P_BLINDS["bl_jane_wee"].mult = 22 / blind
|
G.P_BLINDS["bl_jane_wee"].mult = 22 / blind
|
||||||
G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind
|
G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue