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:
Spoike 2006-03-14 01:13:22 +00:00
parent fe607e613f
commit 8f496bef67

View file

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