Skip to content

Commit

Permalink
q3_ui: Remove redundant code on g_servertype check inside ArenaServer…
Browse files Browse the repository at this point in the history
…s_SetType function
  • Loading branch information
LegendaryGuard committed Oct 26, 2024
1 parent f2578ce commit 685a923
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/q3_ui/ui_servers2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,14 +1124,11 @@ ArenaServers_SetType
int ArenaServers_SetType( int type ) // BFP - Hacky way to get the correct server type :P
{
int value; // BFP - Return the correct value in order to select server type
#if ENABLE_MPLAYER
g_servertype = value = type; // BFP - Let's go! value, you too!
#else // Q3 default
#if ( !ENABLE_MPLAYER ) /* Q3 default */
if (g_servertype == type)
return type;

g_servertype = value = type; // BFP - Let's go! value, you too!
#endif
g_servertype = value = type; // BFP - Let's go! value, you too!

switch( type ) {
default:
Expand Down

0 comments on commit 685a923

Please sign in to comment.