Fix 'LOADING...' message broken by a previous cleanup
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3462 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+10
-2
@@ -943,8 +943,12 @@ SaveLoadGame (PICK_GAME_STATE *pickState, COUNT gameIndex)
|
||||
STAMP saveStamp;
|
||||
BOOLEAN success;
|
||||
|
||||
saveStamp.frame = NULL;
|
||||
|
||||
// TODO: fix ConfirmSaveLoad() interface so it does not rely on
|
||||
// MsgStamp != NULL parameter.
|
||||
LockMutex (GraphicsLock);
|
||||
ConfirmSaveLoad (&saveStamp);
|
||||
ConfirmSaveLoad (pickState->saving ? &saveStamp : NULL);
|
||||
UnlockMutex (GraphicsLock);
|
||||
|
||||
if (pickState->saving)
|
||||
@@ -952,10 +956,14 @@ SaveLoadGame (PICK_GAME_STATE *pickState, COUNT gameIndex)
|
||||
else
|
||||
success = LoadGame (gameIndex, NULL);
|
||||
|
||||
// restore the screen under "Saving..." message
|
||||
// TODO: the same should be done for both save and load if we also
|
||||
// display a load problem message
|
||||
if (pickState->saving)
|
||||
{ // restore the screen under "SAVING..." message
|
||||
LockMutex (GraphicsLock);
|
||||
DrawStamp (&saveStamp);
|
||||
UnlockMutex (GraphicsLock);
|
||||
}
|
||||
|
||||
DestroyDrawable (ReleaseDrawable (saveStamp.frame));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user