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:
gewlitys
2003-07-03 01:26:42 +00:00
parent cc2345a29d
commit e787c7a9a3
2 changed files with 3 additions and 23 deletions
+2
View File
@@ -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
-22
View File
@@ -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);
@@ -1238,27 +1237,6 @@ 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);
break;
case STARMAP:
{