mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
Q3, that little bit more robust.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2106 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fe607e613f
commit
8f496bef67
1 changed files with 5 additions and 3 deletions
|
@ -818,6 +818,8 @@ void SVQ3_SendServerCommand(client_t *cl, char *str)
|
|||
|
||||
void SVQ3_SetConfigString(int num, char *string)
|
||||
{
|
||||
if (!string)
|
||||
string = "";
|
||||
if (svq3_configstrings[num])
|
||||
Z_Free(svq3_configstrings[num]);
|
||||
svq3_configstrings[num] = Z_Malloc(strlen(string)+1);
|
||||
|
@ -1102,8 +1104,8 @@ long Q3G_SystemCallsEx(void *offset, unsigned int mask, int fn, const long *arg)
|
|||
return !!mapentspointer;
|
||||
|
||||
case G_REAL_TIME: // 41
|
||||
Con_Printf("builtin %i is not implemented\n", fn);
|
||||
return 0;
|
||||
VM_FLOAT(ret) = realtime;
|
||||
return ret;
|
||||
case G_SNAPVECTOR:
|
||||
{
|
||||
float *fp = (float *)VM_POINTER( arg[0] );
|
||||
|
@ -2742,7 +2744,7 @@ void SVQ3_ParseClientCommand(client_t *client)
|
|||
if(commandNum <= client->last_client_command_num)
|
||||
return; // we have already received this command
|
||||
|
||||
Con_Printf("ClientCommand %i: %s\n", commandNum, buffer);
|
||||
// Con_Printf("ClientCommand %i: %s\n", commandNum, buffer);
|
||||
|
||||
// Con_DPrintf("clientCommand: %s : %i : %s\n", client->name, commandNum, Com_TranslateLinefeeds(command));
|
||||
|
||||
|
|
Loading…
Reference in a new issue