Planet scan should now take ~2 secs on all machines

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@473 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2002-12-23 16:47:54 +00:00
parent 3ef8c2977b
commit 3252591a76
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -693,7 +693,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
pMS)
{
//STAMP s;
DWORD TimeIn, WaitTime;
if (GLOBAL (CurrentActivity) & CHECK_ABORT)
return (FALSE);
@@ -846,6 +846,8 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
ClearSemaphore (GraphicsSem);
PressState = AnyButtonPress (TRUE);
WaitTime = (ONE_SECOND << 1) / MAP_HEIGHT;
TimeIn = GetTimeCounter ();
for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++)
{
ButtonState = AnyButtonPress (TRUE);
@@ -866,7 +868,8 @@ DoScan (INPUT_STATE InputState, PMENU_STATE
UnbatchGraphics ();
ClearSemaphore (GraphicsSem);
// FlushGraphics ();
SleepThread (2);
SleepThreadUntil (TimeIn + WaitTime);
TimeIn = GetTimeCounter ();
}
pSolarSysState->Tint_rgb = 0;