From 13947c78b5328555ae8fae2c16e24a37b7d86612 Mon Sep 17 00:00:00 2001 From: ghaushe Date: Tue, 24 Dec 2002 02:44:35 +0000 Subject: [PATCH] revert erroneously commited GraphicsSem move in scan.c -PBlue git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@483 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/planets/scan.c b/sc2/src/sc2code/planets/scan.c index e9a3d2b31..30606defa 100644 --- a/sc2/src/sc2code/planets/scan.c +++ b/sc2/src/sc2code/planets/scan.c @@ -847,7 +847,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE PressState = AnyButtonPress (TRUE); WaitTime = (ONE_SECOND << 1) / MAP_HEIGHT; - SetSemaphore (GraphicsSem); +// SetSemaphore (GraphicsSem); TimeIn = GetTimeCounter (); for (i = 0; i < MAP_HEIGHT + NUM_FLASH_COLORS + 1; i++) { @@ -859,7 +859,7 @@ DoScan (INPUT_STATE InputState, PMENU_STATE } if (ButtonState) i = -i; -// SetSemaphore (GraphicsSem); + SetSemaphore (GraphicsSem); BatchGraphics (); DrawPlanet (0, 0, i, rgb); if (i < 0) @@ -867,12 +867,12 @@ DoScan (INPUT_STATE InputState, PMENU_STATE if (pMS->delta_item) DrawScannedStuff (i, min_scan); UnbatchGraphics (); -// ClearSemaphore (GraphicsSem); + ClearSemaphore (GraphicsSem); // FlushGraphics (); SleepThreadUntil (TimeIn + WaitTime); TimeIn = GetTimeCounter (); } - ClearSemaphore (GraphicsSem); +// ClearSemaphore (GraphicsSem); pSolarSysState->Tint_rgb = 0; }