Crash during loading from orbit, starmap issue when orbiting earth fixed,
from PhracturedBlue git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@379 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -93,6 +93,7 @@ RenderTopography (BOOLEAN Reconstruct)
|
|||||||
pSolarSysState->PlanetFrameArray[2], 1
|
pSolarSysState->PlanetFrameArray[2], 1
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
s.frame = pSolarSysState->TopoFrame;
|
||||||
DrawStamp (&s);
|
DrawStamp (&s);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1223,15 +1223,17 @@ DoFlagshipCommands (INPUT_STATE InputState, PMENU_STATE pMS)
|
|||||||
|
|
||||||
if (LOBYTE (GLOBAL(CurrentActivity)) == IN_INTERPLANETARY)
|
if (LOBYTE (GLOBAL(CurrentActivity)) == IN_INTERPLANETARY)
|
||||||
{
|
{
|
||||||
|
SetSemaphore(GraphicsSem);
|
||||||
ClearSISRect(DRAW_SIS_DISPLAY);
|
ClearSISRect(DRAW_SIS_DISPLAY);
|
||||||
|
ClearSemaphore(GraphicsSem);
|
||||||
DrawSISFrame();
|
DrawSISFrame();
|
||||||
|
SetSemaphore(GraphicsSem);
|
||||||
RepairSISBorder();
|
RepairSISBorder();
|
||||||
DrawSISMessage(NULL_PTR);
|
DrawSISMessage(NULL_PTR);
|
||||||
DrawSISTitle(GLOBAL_SIS(PlanetName));
|
DrawSISTitle(GLOBAL_SIS(PlanetName));
|
||||||
DrawStarBackGround(TRUE);
|
DrawStarBackGround(TRUE);
|
||||||
OldContext = SetContext(SpaceContext);
|
OldContext = SetContext(SpaceContext);
|
||||||
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
|
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
|
||||||
SetSemaphore(GraphicsSem);
|
|
||||||
BatchGraphics();
|
BatchGraphics();
|
||||||
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
|
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
|
||||||
UnbatchGraphics();
|
UnbatchGraphics();
|
||||||
|
|||||||
Reference in New Issue
Block a user