Fixed a bug (#587) when loading from hyperspace, from Nic and Michael
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1331 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -182,9 +182,11 @@ DoBattle (BATTLE_STATE *bs)
|
||||
SetTransitionSource (&r);
|
||||
}
|
||||
BatchGraphics ();
|
||||
if (LOBYTE (GLOBAL (CurrentActivity)) == IN_HYPERSPACE)
|
||||
if ((LOBYTE (GLOBAL (CurrentActivity)) == IN_HYPERSPACE) &&
|
||||
!(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD)))
|
||||
SeedUniverse ();
|
||||
RedrawQueue (TRUE);
|
||||
|
||||
if (bs->first_time)
|
||||
{
|
||||
bs->first_time = FALSE;
|
||||
@@ -192,6 +194,11 @@ DoBattle (BATTLE_STATE *bs)
|
||||
}
|
||||
UnbatchGraphics ();
|
||||
UnlockMutex (GraphicsLock);
|
||||
if ((!(GLOBAL (CurrentActivity) & IN_BATTLE)) ||
|
||||
(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD)))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
if (nth_frame)
|
||||
TaskSwitch ();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user