Skip to content

Commit

Permalink
Hide target tracking system option in non-debug builds. Closes ticket…
Browse files Browse the repository at this point in the history
…:686
  • Loading branch information
perim committed Jan 27, 2011
1 parent 9220db3 commit 02fe1d9
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/ingameop.cpp
Expand Up @@ -235,28 +235,23 @@ static BOOL _intAddInGameOptions(void)
sFormInit.y = (SWORD)INTINGAMEOP_Y;
sFormInit.height = INTINGAMEOP_H;


if ( (!bMultiPlayer || (NetPlay.bComms==0) ) && !bInTutorial)
if ((!bMultiPlayer || (NetPlay.bComms == 0)) && !bInTutorial)
{
}
else
{
sFormInit.height = INTINGAMEOP_HS;
}



sFormInit.pDisplay = intOpenPlainForm;
sFormInit.disableChildren= true;

widgAddForm(psWScreen, &sFormInit);

// add 'quit' text

if ( (!bMultiPlayer || (NetPlay.bComms==0) ) && !bInTutorial)
if ((!bMultiPlayer || (NetPlay.bComms == 0)) && !bInTutorial)
{
addIGTextButton(INTINGAMEOP_QUIT, INTINGAMEOP_5_Y, INTINGAMEOP_OP_W, _("Quit"), OPALIGN);

}
else
{
Expand All @@ -266,18 +261,19 @@ static BOOL _intAddInGameOptions(void)
// add 'resume'
addIGTextButton(INTINGAMEOP_RESUME, INTINGAMEOP_1_Y, INTINGAMEOP_OP_W, _("Resume Game"), OPALIGN);

#ifdef DEBUG
// add 'options'
addIGTextButton(INTINGAMEOP_OPTIONS, INTINGAMEOP_2_Y, INTINGAMEOP_OP_W, _("Audio Options"), OPALIGN);
#endif


if ( (!bMultiPlayer || (NetPlay.bComms==0) ) && !bInTutorial)
{ // add 'load'
if ((!bMultiPlayer || (NetPlay.bComms == 0)) && !bInTutorial)
{
// add 'load'
addIGTextButton(INTINGAMEOP_LOAD, INTINGAMEOP_3_Y, INTINGAMEOP_OP_W, _("Load Game"), OPALIGN);
// add 'save'
addIGTextButton(INTINGAMEOP_SAVE, INTINGAMEOP_4_Y, INTINGAMEOP_OP_W, _("Save Game"), OPALIGN);
}


intMode = INT_INGAMEOP; // change interface mode.
InGameOpUp = true; // inform interface.

Expand Down

0 comments on commit 02fe1d9

Please sign in to comment.