From 9ca3cf7a34bc92ebe9449705ce5922fc23899ea3 Mon Sep 17 00:00:00 2001 From: sezero Date: Mon, 21 Jun 2010 09:58:12 +0000 Subject: [PATCH] * common.c: Renamed the empty Test_f function of johnfitz to FitzTezt_f. Renamed its associated console command to fitztest. * net_dgrm.c: Renamed back Net_Test_f to Test_f. Added back the test, test2 and ban console commands. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@209 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/common.c | 4 ++-- Quake/net_dgrm.c | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Quake/common.c b/Quake/common.c index 491858f6..d9dc8187 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -1194,7 +1194,7 @@ Test_f -- johnfitz ================ */ #ifdef _DEBUG -void Test_f (void) +static void FitzTest_f (void) { } #endif @@ -1255,7 +1255,7 @@ void COM_Init (char *basedir) COM_CheckRegistered (); #ifdef _DEBUG - Cmd_AddCommand ("test", Test_f); //johnfitz + Cmd_AddCommand ("fitztest", FitzTest_f); //johnfitz #endif } diff --git a/Quake/net_dgrm.c b/Quake/net_dgrm.c index 4c1664f8..c116abfb 100644 --- a/Quake/net_dgrm.c +++ b/Quake/net_dgrm.c @@ -155,7 +155,7 @@ void NET_Ban_f (void) break; } } -#endif +#endif // BAN_TEST int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data) @@ -608,7 +608,7 @@ static void Test_Poll(void) } } -static void Net_Test_f (void) +static void Test_f (void) { char *host; int n; @@ -835,6 +835,12 @@ int Datagram_Init (void) if (num_inited == 0) return -1; +#ifdef BAN_TEST + Cmd_AddCommand ("ban", NET_Ban_f); +#endif + Cmd_AddCommand ("test", Test_f); + Cmd_AddCommand ("test2", Test2_f); + return 0; }