Floor ante number to prevent nil return value

This commit is contained in:
Emik 2025-03-26 12:17:03 +01:00
parent 4df5cdfc2b
commit 511187e2e5
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D

View file

@ -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