Previously Drawn Card Disappears on Draw #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Visual bug where the last card that was drawn stops rendering when you draw a new card (for the small duration when it should be visible before the new card's tween finishes).
Fix Applied ✓
Root cause:
card_positions()rendered exactlyvisiblewaste cards —1for Draw-One,3for Draw-Three. When a draw occurred,render_startwas immediately recalculated to exclude the card that was just covered, which got despawned on the same frame the new card's slide-in tween began. This produced a one-frame blank flash before the incoming card finished animating into place.Fix (commit
33fb962):render_startnow usesvisible + 1, keeping one extra card in the scene at all times.x = 0, hidden underneath the visible stack. For Draw-Three, the fan x-offset usesslot.saturating_sub(1)so the 3 visible cards retain their correct fanned positions while the hidden card stays at x = 0.Existing waste render tests updated to reflect the new bounds (
≤ 2for Draw-One,≤ 4for Draw-Three) while still asserting the top card is always present and the fan ordering is correct.