Auto-complete deactivates mid-sequence when is_auto_completable is transiently false #15
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?
File
solitaire_engine/src/auto_complete_plugin.rslines 72–77Description
The deactivation branch sets
state.active = falsewheneveris_auto_completableis false — including mid-sequence:If the game engine transiently clears
is_auto_completablewhile a move is in-flight (the comment at line 121 acknowledgesnext_auto_complete_move()can returnNoneon a race), the auto-complete sequence hard-stops and never restarts, even though the game is not won and the sequence is not done. There is no "was already active" guard in the deactivation branch.Fix
Only deactivate when the game is won or a new game starts, not on every frame where
is_auto_completableis transiently false.