diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2019-11-01 22:27:56 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2019-11-01 22:27:56 +0000 |
commit | 3235a157fc8511c91008c9f5119775685443f338 (patch) | |
tree | ad2d276e4aa7a57406a735e3cb6c7c2ec155b1e0 /src/game/g_client.c | |
parent | 76130d3d57d3d6aad34d66d6385c62db28e95f78 (diff) |
allow g_clientUpgradeNotice to be changed manually as g_outdatedClientMessage
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 9e86d9f..e488126 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1625,18 +1625,11 @@ void ClientBegin( int clientNum ) } G_LogPrintf( "ClientBegin: %i\n", clientNum ); - if( g_clientUpgradeNotice.integer ) + if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) && + g_outdatedClientMessage.string[0] ) { - if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) ) - { - trap_SendServerCommand( client->ps.clientNum, va( "print \"^3Your client is out of date. Updating your client will allow you to " - "become an admin on servers and download maps much more quickly. Please replace your client executable with a newer client. \n\"" ) ); - - trap_SendServerCommand( client->ps.clientNum, va("print \"^3Some available clients: \n" - "^2TremFusion^7- ^3http://www.tremfusion.net/download/^7\n" - "^2FSM-Trem^7 - ^3http://code.google.com/p/fsm-trem/^7\n" - "^2MGClient^7 - ^3http://releases.mercenariesguild.net/client/^7\n\"" ) ); - } + trap_SendServerCommand( client->ps.clientNum, va( + "print \"%s\n\"", g_outdatedClientMessage.string ) ); } // count current clients and rank for scoreboard |