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:
@@ -132,8 +132,13 @@ int clock_task_func(void* data)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(GLOBAL (CurrentActivity) & CHECK_ABORT)
|
||||
if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT))
|
||||
&& 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;
|
||||
|
||||
@@ -142,6 +147,7 @@ int clock_task_func(void* data)
|
||||
DrawSISMessage ((UNICODE *)~0L);
|
||||
SetContext (OldContext);
|
||||
}
|
||||
}
|
||||
|
||||
cycle_index = (cycle_index + 1) % NUM_CYCLES;
|
||||
delay_count = NUM_DELAYS;
|
||||
|
||||
Reference in New Issue
Block a user