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:
@@ -1,4 +1,6 @@
|
||||
Changes towards version 0.4:
|
||||
- Fixed various odd behaviors when loading from HyperSpace (bug #587),
|
||||
from Nic and Michael
|
||||
- Added new 'triscan' scaler; derived from scale2x[.sf.net] -Alex
|
||||
- Space marines die in a self-destructing Scout (Bug #445), from Nic
|
||||
- Added the -l option to produce logfiles (bug #560), from Nic
|
||||
|
||||
@@ -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