Autopilot blinking in combat/starmap fixed

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@270 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-11-30 15:54:28 +00:00
parent 08a258aa0f
commit 9ddfb25d8d
+7 -1
View File
@@ -132,8 +132,13 @@ int clock_task_func(void* data)
} }
else else
{ {
if (!(GLOBAL (CurrentActivity) & CHECK_ABORT) if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT))
&& GLOBAL_SIS (CrewEnlisted) != (COUNT)~0) && GLOBAL_SIS (CrewEnlisted) != (COUNT)~0)
{
// 2002/11/30 this additional 'if' fixes autopilot indicator blinking on combat/starmap
// TODO: is there a better (more exact) way of determining if player is in starmap menu or not?
if (LOBYTE (GLOBAL (CurrentActivity)) != IN_ENCOUNTER &&
(!pMenuState || (pMenuState && pMenuState->InputFunc == DoFlagshipCommands)))
{ {
CONTEXT OldContext; CONTEXT OldContext;
@@ -142,6 +147,7 @@ int clock_task_func(void* data)
DrawSISMessage ((UNICODE *)~0L); DrawSISMessage ((UNICODE *)~0L);
SetContext (OldContext); SetContext (OldContext);
} }
}
cycle_index = (cycle_index + 1) % NUM_CYCLES; cycle_index = (cycle_index + 1) % NUM_CYCLES;
delay_count = NUM_DELAYS; delay_count = NUM_DELAYS;