mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
committed by
majcosta
co-authored by
Claude Opus 4.8
parent
dbf6e1cd10
commit
f1d5431660
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user