fix(speed): 배속 관련 버그 수정
- 광고 후 배속 적용 안됨: isShowingAd 플래그로 lifecycle reload 방지 - 배속 종료 후 복귀 안됨: setSpeed(_savedSpeedMultiplier) 추가 - 복귀 상자 장비 장착 안됨: _loop?.replaceState() 추가 - 세이브 로드 시 1배속 고정: 명예의 전당 해금 시 최소 2배속 보장
This commit is contained in:
@@ -289,9 +289,12 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
}
|
||||
|
||||
// 모바일: 앱이 포그라운드로 돌아올 때 전체 재로드
|
||||
// (광고 표시 중에는 reload 건너뛰기 - 배속 부스트 등 상태 유지)
|
||||
if (appState == AppLifecycleState.resumed && isMobile) {
|
||||
_audioController.resumeAll();
|
||||
_reloadGameScreen();
|
||||
if (!widget.controller.isShowingAd) {
|
||||
_reloadGameScreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -659,6 +662,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
speedBoostEndMs: widget.controller.monetization.speedBoostEndMs,
|
||||
isPaidUser: widget.controller.monetization.isPaidUser,
|
||||
onSpeedBoostActivate: _handleSpeedBoost,
|
||||
isSpeedBoostActive: widget.controller.isSpeedBoostActive,
|
||||
adSpeedMultiplier: widget.controller.adSpeedMultiplier,
|
||||
has2xUnlocked: widget.controller.has2xUnlocked,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user