Skip to content

Commit f385b39

Browse files
committed
Fixed upgrade_hand display error with repeated leveling
1 parent 1fc5acb commit f385b39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/utils.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,9 @@ function SMODS.upgrade_poker_hands(args)
33063306
end
33073307
end
33083308

3309+
local displayed = false
33093310
for _, hand in ipairs(args.hands) do
3311+
displayed = hand == SMODS.displayed_hand
33103312
if not instant then
33113313
update_hand_text({sound = 'button', volume = 0.7, pitch = 0.8, delay = 0.3}, {handname=localize(hand, 'poker_hands'), level=G.GAME.hands[hand].level})
33123314
for name, p in pairs(SMODS.Scoring_Parameters) do
@@ -3339,7 +3341,7 @@ function SMODS.upgrade_poker_hands(args)
33393341
if not instant then delay(1.3) end
33403342
end
33413343

3342-
if not instant then
3344+
if not instant and not displayed then
33433345
update_hand_text({sound = 'button', volume = 0.7, pitch = 1.1, delay = 0}, vals_after_level or {mult = 0, chips = 0, handname = '', level = ''})
33443346
end
33453347
end

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~BETA-1204b-STEAMODDED"
1+
return "1.0.0~BETA-1207a-STEAMODDED"

0 commit comments

Comments
 (0)