~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/tron/gServerBrowser.cpp

  • Committer: wrtlprnft
  • Date: 2008-03-24 08:28:20 UTC
  • mfrom: (563.1.226)
  • Revision ID: wrtlprnft@users.sf.net-20080324082820-235q3jssjh059s53
Merged changes from the 0.2.8 branch.
The pighack help text got replaced by the new help menu.
To emulate the old behavior use:
REMOVE_HELP_TOPIC commands
HELP_INTRODUCTORY_BLURB <your help text>

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
#endif /* DEDICATED */
580
580
static bool sg_filterServernameColorStrings = true;
581
581
static tSettingItem< bool > removeServerNameColors("FILTER_COLOR_SERVER_NAMES", sg_filterServernameColorStrings);
 
582
static bool sg_filterServernameDarkColorStrings = true;
 
583
static tSettingItem< bool > removeServerNameDarkColors("FILTER_DARK_COLOR_SERVER_NAMES", sg_filterServernameDarkColorStrings);
582
584
 
583
585
void gServerMenuItem::Render(REAL x,REAL y,REAL alpha, bool selected)
584
586
{
650
652
        }
651
653
 
652
654
        if ( sg_filterServernameColorStrings )
653
 
            name << tColoredString::RemoveColors( server->GetName() );
 
655
            name << tColoredString::RemoveColors( server->GetName(), false );
 
656
        else if ( sg_filterServernameDarkColorStrings )
 
657
            name << tColoredString::RemoveColors( server->GetName(), true );
654
658
        else
655
659
        {
656
660
            name << server->GetName();