Hyperspace saving crash which was introduced by previous patches, fixed

(from slayne)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@332 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-12-04 23:35:29 +00:00
parent a367aa0daa
commit 969999b948
+17 -15
View File
@@ -1221,21 +1221,23 @@ DoFlagshipCommands (INPUT_STATE InputState, PMENU_STATE pMS)
if (GameOptions () == 0) if (GameOptions () == 0)
return (FALSE); return (FALSE);
if (LOBYTE (GLOBAL(CurrentActivity)) == IN_INTERPLANETARY)
ClearSISRect(DRAW_SIS_DISPLAY); {
DrawSISFrame(); ClearSISRect(DRAW_SIS_DISPLAY);
RepairSISBorder(); DrawSISFrame();
DrawSISMessage(NULL_PTR); RepairSISBorder();
DrawSISTitle(GLOBAL_SIS(PlanetName)); DrawSISMessage(NULL_PTR);
DrawStarBackGround(TRUE); DrawSISTitle(GLOBAL_SIS(PlanetName));
OldContext = SetContext(SpaceContext); DrawStarBackGround(TRUE);
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE); OldContext = SetContext(SpaceContext);
SetSemaphore(GraphicsSem); SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
BatchGraphics(); SetSemaphore(GraphicsSem);
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0); BatchGraphics();
UnbatchGraphics(); DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
SetContext(OldContext); UnbatchGraphics();
ClearSemaphore(GraphicsSem); SetContext(OldContext);
ClearSemaphore(GraphicsSem);
}
// else // else
// DrawMenuStateStrings (PM_SCAN, ROSTER + 1); // DrawMenuStateStrings (PM_SCAN, ROSTER + 1);
break; break;