Fix potential race between stopping the rotate_starbase task and

destroying the frame  (bug 230)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@864 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-03-07 06:30:40 +00:00
parent 38ad179d23
commit 3fd77b1b83
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.3: Changes towards version 0.3:
- Fix race on exiting starbase (bug 230) -PracturedBlue
- Cleanup shipyard door animation (bug 215) -PhracturedBlue - Cleanup shipyard door animation (bug 215) -PhracturedBlue
- Misc .ani fixes; Fixes asteroid destruction crash (bugs 150, 155, 158) - Misc .ani fixes; Fixes asteroid destruction crash (bugs 150, 155, 158)
and somewhat fixes Mycon potrait (bug #183) -fOSSiL and somewhat fixes Mycon potrait (bug #183) -fOSSiL
+1 -3
View File
@@ -339,15 +339,13 @@ s.origin.x = SAFE_X, s.origin.y = SAFE_Y + 4;
|| GET_GAME_STATE (CHMMR_BOMB_STATE) == 2) || GET_GAME_STATE (CHMMR_BOMB_STATE) == 2)
{ {
ExitStarBase: ExitStarBase:
SetSemaphore (GraphicsSem);
if (pMS->flash_task) if (pMS->flash_task)
{ {
Task_SetState (pMS->flash_task, TASK_EXIT); ConcludeTask (pMS->flash_task);
pMS->flash_task = 0; pMS->flash_task = 0;
} }
DestroyDrawable (ReleaseDrawable (pMS->CurFrame)); DestroyDrawable (ReleaseDrawable (pMS->CurFrame));
pMS->CurFrame = 0; pMS->CurFrame = 0;
ClearSemaphore (GraphicsSem);
StopMusic (); StopMusic ();
if (pMS->hMusic) if (pMS->hMusic)
{ {