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)
return (FALSE);
ClearSISRect(DRAW_SIS_DISPLAY);
DrawSISFrame();
RepairSISBorder();
DrawSISMessage(NULL_PTR);
DrawSISTitle(GLOBAL_SIS(PlanetName));
DrawStarBackGround(TRUE);
OldContext = SetContext(SpaceContext);
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
SetSemaphore(GraphicsSem);
BatchGraphics();
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
UnbatchGraphics();
SetContext(OldContext);
ClearSemaphore(GraphicsSem);
if (LOBYTE (GLOBAL(CurrentActivity)) == IN_INTERPLANETARY)
{
ClearSISRect(DRAW_SIS_DISPLAY);
DrawSISFrame();
RepairSISBorder();
DrawSISMessage(NULL_PTR);
DrawSISTitle(GLOBAL_SIS(PlanetName));
DrawStarBackGround(TRUE);
OldContext = SetContext(SpaceContext);
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
SetSemaphore(GraphicsSem);
BatchGraphics();
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
UnbatchGraphics();
SetContext(OldContext);
ClearSemaphore(GraphicsSem);
}
// else
// DrawMenuStateStrings (PM_SCAN, ROSTER + 1);
break;