* 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
This commit is contained in:
sezero 2010-06-21 09:58:12 +00:00
parent 479f58decb
commit 9ca3cf7a34
2 changed files with 10 additions and 4 deletions

View file

@ -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
}

View file

@ -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;
}