Remove dead gfTransitionMapscreenToAutoResolve flag

The flag was initialized FALSE (mapscreen.cpp), read once in
HandlePreBattleInterfaceStates, and only ever set FALSE — never TRUE anywhere
in the tree. Its else-if branch was unreachable and its body did nothing but
re-clear the always-false flag.

Verify: grep 'gfTransitionMapscreenToAutoResolve' across the tree now hits
nothing. Build: JA2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Marco Antonio J. Costa
2026-08-02 14:58:24 -03:00
committed by majcosta
co-authored by Claude Opus 4.8
parent dbf6e1cd10
commit f1d5431660
2 changed files with 0 additions and 9 deletions
-5
View File
@@ -54,7 +54,6 @@
extern void InitializeTacticalStatusAtBattleStart();
extern BOOLEAN gfDelayAutoResolveStart;
extern BOOLEAN gfTransitionMapscreenToAutoResolve;
extern UILayout_Map UI_MAP;
#ifdef JA2BETAVERSION
@@ -2711,8 +2710,4 @@ void HandlePreBattleInterfaceStates()
gfAutomaticallyStartAutoResolve = FALSE;
ActivateAutomaticAutoResolveStart();
}
else if( gfTransitionMapscreenToAutoResolve )
{
gfTransitionMapscreenToAutoResolve = FALSE;
}
}