mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 00:20:46 +00:00
* 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:
parent
479f58decb
commit
9ca3cf7a34
2 changed files with 10 additions and 4 deletions
|
@ -1194,7 +1194,7 @@ Test_f -- johnfitz
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
void Test_f (void)
|
static void FitzTest_f (void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1255,7 +1255,7 @@ void COM_Init (char *basedir)
|
||||||
COM_CheckRegistered ();
|
COM_CheckRegistered ();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
Cmd_AddCommand ("test", Test_f); //johnfitz
|
Cmd_AddCommand ("fitztest", FitzTest_f); //johnfitz
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ void NET_Ban_f (void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif // BAN_TEST
|
||||||
|
|
||||||
|
|
||||||
int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data)
|
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;
|
char *host;
|
||||||
int n;
|
int n;
|
||||||
|
@ -835,6 +835,12 @@ int Datagram_Init (void)
|
||||||
if (num_inited == 0)
|
if (num_inited == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
#ifdef BAN_TEST
|
||||||
|
Cmd_AddCommand ("ban", NET_Ban_f);
|
||||||
|
#endif
|
||||||
|
Cmd_AddCommand ("test", Test_f);
|
||||||
|
Cmd_AddCommand ("test2", Test2_f);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue