diff --git a/src/components/frontend/qualification/AimTrainerGame.tsx b/src/components/frontend/qualification/AimTrainerGame.tsx index 621d40f..3ea11a4 100644 --- a/src/components/frontend/qualification/AimTrainerGame.tsx +++ b/src/components/frontend/qualification/AimTrainerGame.tsx @@ -325,9 +325,9 @@ export function AimTrainerGame({ }, [resetToReady, startGame]); const handleRestartAction = useCallback(() => { - if (phaseRef.current !== "playing") return; - startGame(); - }, [startGame]); + if (phaseRef.current === "ready") return; + resetToReady(); + }, [resetToReady]); const handleShot = useCallback( (event: PointerEvent) => { @@ -458,10 +458,7 @@ export function AimTrainerGame({ if (remaining === 0) { finish(); } else { - const displayedSecond = - remaining <= FINAL_COUNTDOWN_WINDOW_MS - ? Math.ceil(remaining / 1000) - : COURSE_DURATION_SECONDS; + const displayedSecond = Math.ceil(remaining / 1000); if (displayedSecond !== game.lastDisplayedSecond) { game.lastDisplayedSecond = displayedSecond; setTimerSeconds(displayedSecond); @@ -728,7 +725,7 @@ export function AimTrainerGame({
Headshots score {HEADSHOT_POINTS} · torso hits score {TORSO_POINTS} · civilians cost{" "} - {CIVILIAN_PENALTY}. Press R to restart the lane. + {CIVILIAN_PENALTY}. Press R to reset the lane.