Fixed small graphics glitch and NULL Stamp draw attempt in menu code
(part of bug #26, problem was slayne's old glitch fix which isn't needed anymore) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1010 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
Changes towards version 0.3:
|
||||
- Fixed small graphics glitch and NULL Stamp draw attempt in menu code
|
||||
(part of bug #26) -Mika
|
||||
- Absence of voice files is now automatically detected (bug #309) -Mika
|
||||
- Fixed Commander Hayes mouth movement before radioactives are given
|
||||
(bug #343) -Mika
|
||||
|
||||
@@ -1195,7 +1195,6 @@ DoFlagshipCommands (PMENU_STATE pMS)
|
||||
NewState = pMS->CurState;
|
||||
if (select || LastActivity == CHECK_LOAD)
|
||||
{
|
||||
CONTEXT OldContext;
|
||||
if (NewState != SCAN + 1 && NewState != (GAME_MENU) + 1)
|
||||
{
|
||||
SetSemaphore (GraphicsSem);
|
||||
@@ -1237,28 +1236,7 @@ DoFlagshipCommands (PMENU_STATE pMS)
|
||||
}
|
||||
case GAME_MENU:
|
||||
if (GameOptions () == 0)
|
||||
return (FALSE);
|
||||
|
||||
if (LOBYTE (GLOBAL(CurrentActivity)) == IN_INTERPLANETARY)
|
||||
{
|
||||
SetSemaphore(GraphicsSem);
|
||||
ClearSISRect(DRAW_SIS_DISPLAY);
|
||||
ClearSemaphore(GraphicsSem);
|
||||
DrawSISFrame();
|
||||
SetSemaphore(GraphicsSem);
|
||||
RepairSISBorder();
|
||||
DrawSISMessage(NULL_PTR);
|
||||
DrawSISTitle(GLOBAL_SIS(PlanetName));
|
||||
DrawStarBackGround(TRUE);
|
||||
OldContext = SetContext(SpaceContext);
|
||||
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);
|
||||
return (FALSE);
|
||||
break;
|
||||
case STARMAP:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user