bug(time-attack): timer does not pause when Home or Win overlay is open #54

Closed
opened 2026-05-28 01:48:59 +00:00 by funman300 · 0 comments
Owner

Bug

In time_attack_plugin.rs, the countdown timer only stops when the game's paused resource has paused.is_some_and(|p| p.0). Opening the Home menu or the Win overlay sets a different state and does not set this pause flag, so the timer continues to count down while the overlay is visible.

Affected file

solitaire_engine/src/time_attack_plugin.rs

Expected behaviour

The timer should pause whenever any full-screen overlay (Home, Win summary, Settings, etc.) is open, not only when the explicit pause flag is set.

Fix

Check GameState / screen state in the timer update system and return early when any modal or overlay is active, OR hook into the same system that pauses background systems during overlays.

## Bug In `time_attack_plugin.rs`, the countdown timer only stops when the game's `paused` resource has `paused.is_some_and(|p| p.0)`. Opening the Home menu or the Win overlay sets a different state and does not set this pause flag, so the timer continues to count down while the overlay is visible. ## Affected file `solitaire_engine/src/time_attack_plugin.rs` ## Expected behaviour The timer should pause whenever any full-screen overlay (Home, Win summary, Settings, etc.) is open, not only when the explicit pause flag is set. ## Fix Check `GameState` / screen state in the timer update system and return early when any modal or overlay is active, OR hook into the same system that pauses background systems during overlays.
funman300 added the bugcorrectness labels 2026-05-28 01:48:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: funman300/Ferrous-Solitaire#54