Fixed some lockup bugs (load/save, comm)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@94 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1381,7 +1381,9 @@ DoCommunication (INPUT_STATE InputState, PENCOUNTER_STATE pES)
|
||||
|
||||
if (pES->AnimTask)
|
||||
{
|
||||
Task_SetState (pES->AnimTask, TASK_EXIT);
|
||||
ClearSemaphore (GraphicsSem);
|
||||
ConcludeTask (pES->AnimTask);
|
||||
SetSemaphore (GraphicsSem);
|
||||
pES->AnimTask = 0;
|
||||
}
|
||||
CommData.AlienTransitionDesc.AnimFlags &= ~(TALK_INTRO | TALK_DONE);
|
||||
|
||||
@@ -1052,7 +1052,9 @@ SetFlashRect (PRECT pRect, FRAME f)
|
||||
flash_rect.extent.width = 0;
|
||||
if (flash_task)
|
||||
{
|
||||
ClearSemaphore (GraphicsSem);
|
||||
ConcludeTask (flash_task);
|
||||
SetSemaphore (GraphicsSem);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user