2004-02-20 05:37:47 +00:00
|
|
|
/*
|
|
|
|
#FILENAME#
|
|
|
|
|
|
|
|
#DESCRIPTION#
|
|
|
|
|
|
|
|
Copyright (C) 2004 #AUTHOR#
|
|
|
|
|
|
|
|
Author: #AUTHOR#
|
|
|
|
Date: #DATE#
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static __attribute__ ((unused)) const char rcsid[] =
|
|
|
|
"$Id$";
|
|
|
|
|
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
# include <string.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
# include <strings.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
#include "QF/cbuf.h"
|
2004-02-20 05:37:47 +00:00
|
|
|
#include "QF/cmd.h"
|
|
|
|
#include "QF/console.h"
|
2004-02-21 05:09:02 +00:00
|
|
|
#include "QF/dstring.h"
|
2004-02-20 05:37:47 +00:00
|
|
|
#include "QF/hash.h"
|
2004-02-21 05:09:02 +00:00
|
|
|
#include "QF/idparse.h"
|
2004-02-20 05:37:47 +00:00
|
|
|
#include "QF/info.h"
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
#include "qw/msg_ucmd.h"
|
|
|
|
#include "qw/protocol.h"
|
|
|
|
|
2004-02-20 05:37:47 +00:00
|
|
|
#include "client.h"
|
|
|
|
#include "connection.h"
|
2004-02-21 05:09:02 +00:00
|
|
|
#include "qtv.h"
|
2005-05-07 13:57:07 +00:00
|
|
|
#include "server.h"
|
2004-02-20 05:37:47 +00:00
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
typedef struct ucmd_s {
|
|
|
|
const char *name;
|
|
|
|
void (*func) (client_t *cl, void *userdata);
|
|
|
|
unsigned no_redirect:1;
|
|
|
|
unsigned overridable:1;
|
|
|
|
unsigned freeable:1;
|
|
|
|
void *userdata;
|
|
|
|
void (*on_free) (void *userdata);
|
|
|
|
} ucmd_t;
|
|
|
|
|
|
|
|
static void
|
|
|
|
client_drop (client_t *cl)
|
|
|
|
{
|
|
|
|
MSG_WriteByte (&cl->netchan.message, svc_disconnect);
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("Client %s removed\n", Info_ValueForKey (cl->userinfo, "name"));
|
2004-02-21 05:09:02 +00:00
|
|
|
cl->drop = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_new_f (client_t *cl, void *unused)
|
|
|
|
{
|
2004-02-22 06:19:38 +00:00
|
|
|
qtv_printf ("\"cmd list\" for a list of servers\n");
|
|
|
|
qtv_printf ("\"cmd connect <servername>\" to connect to a server\n");
|
2004-02-21 05:09:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_modellist_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_soundlist_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_prespawn_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_spawn_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_begin_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_drop_f (client_t *cl, void *unused)
|
|
|
|
{
|
2005-05-07 14:00:53 +00:00
|
|
|
if (cl->server)
|
|
|
|
Server_Disconnect (cl);
|
2004-02-21 05:09:02 +00:00
|
|
|
client_drop (cl);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_pings_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_rate_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_say_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_setinfo_f (client_t *cl, void *unused)
|
2004-02-20 05:37:47 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
static void
|
|
|
|
cl_serverinfo_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_download_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_nextdl_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_ptrack_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2005-05-07 11:42:04 +00:00
|
|
|
static void
|
|
|
|
cl_list_f (client_t *cl, void *unused)
|
|
|
|
{
|
2005-05-07 13:57:07 +00:00
|
|
|
Server_List ();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_connect_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
if (cl->server) {
|
|
|
|
qtv_printf ("already connected to server %s\n", cl->server->name);
|
|
|
|
qtv_printf ("\"cmd disconnect\" first\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Server_Connect (Cmd_Argv (1), cl);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cl_disconnect_f (client_t *cl, void *unused)
|
|
|
|
{
|
|
|
|
if (!cl->server) {
|
|
|
|
qtv_printf ("not connected to a server\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Server_Disconnect (cl);
|
2005-05-07 11:42:04 +00:00
|
|
|
}
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
static ucmd_t ucmds[] = {
|
|
|
|
{"new", cl_new_f, 0, 0},
|
|
|
|
{"modellist", cl_modellist_f, 0, 0},
|
|
|
|
{"soundlist", cl_soundlist_f, 0, 0},
|
|
|
|
{"prespawn", cl_prespawn_f, 0, 0},
|
|
|
|
{"spawn", cl_spawn_f, 0, 0},
|
|
|
|
{"begin", cl_begin_f, 1, 0},
|
|
|
|
|
2005-05-07 13:57:07 +00:00
|
|
|
{"drop", cl_drop_f, 1, 0},
|
2004-02-21 05:09:02 +00:00
|
|
|
{"pings", cl_pings_f, 0, 0},
|
|
|
|
|
|
|
|
// issued by hand at client consoles
|
|
|
|
{"rate", cl_rate_f, 0, 0},
|
|
|
|
{"kill", 0, 1, 1},
|
|
|
|
{"pause", 0, 1, 0},
|
|
|
|
{"msg", 0, 0, 0},
|
|
|
|
|
|
|
|
{"say", cl_say_f, 1, 1},
|
|
|
|
{"say_team", cl_say_f, 1, 1},
|
|
|
|
|
|
|
|
{"setinfo", cl_setinfo_f, 1, 0},
|
|
|
|
|
|
|
|
{"serverinfo", cl_serverinfo_f, 0, 0},
|
|
|
|
|
|
|
|
{"download", cl_download_f, 1, 0},
|
|
|
|
{"nextdl", cl_nextdl_f, 0, 0},
|
|
|
|
|
|
|
|
{"ptrack", cl_ptrack_f, 0, 1}, // ZOID - used with autocam
|
|
|
|
|
|
|
|
{"snap", 0, 0, 0},
|
2005-05-07 11:42:04 +00:00
|
|
|
|
|
|
|
{"list", cl_list_f, 0, 0},
|
2005-05-07 13:57:07 +00:00
|
|
|
{"connect", cl_connect_f, 0, 0},
|
|
|
|
{"disconnect", cl_disconnect_f, 0, 0},
|
2004-02-21 05:09:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static hashtab_t *ucmd_table;
|
|
|
|
int (*ucmd_unknown)(void);
|
|
|
|
|
|
|
|
static void
|
|
|
|
client_exec_command (client_t *cl, const char *s)
|
|
|
|
{
|
|
|
|
ucmd_t *u;
|
|
|
|
|
|
|
|
COM_TokenizeString (s, qtv_args);
|
|
|
|
cmd_args = qtv_args;
|
|
|
|
|
|
|
|
u = (ucmd_t*) Hash_Find (ucmd_table, qtv_args->argv[0]->str);
|
|
|
|
|
|
|
|
if (!u) {
|
2005-05-01 04:08:47 +00:00
|
|
|
if (!ucmd_unknown || !ucmd_unknown ()) {
|
2004-02-22 06:19:38 +00:00
|
|
|
qtv_begin_redirect (RD_CLIENT, cl);
|
2004-02-21 05:09:02 +00:00
|
|
|
qtv_printf ("Bad user command: %s\n", qtv_args->argv[0]->str);
|
|
|
|
qtv_end_redirect ();
|
|
|
|
}
|
|
|
|
} else {
|
2004-02-22 06:19:38 +00:00
|
|
|
if (u->func) {
|
|
|
|
if (!u->no_redirect)
|
|
|
|
qtv_begin_redirect (RD_CLIENT, cl);
|
|
|
|
u->func (cl, u->userdata);
|
|
|
|
if (!u->no_redirect)
|
|
|
|
qtv_end_redirect ();
|
|
|
|
}
|
2004-02-21 05:09:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
client_parse_message (client_t *cl)
|
|
|
|
{
|
|
|
|
int c, size;
|
|
|
|
vec3_t o;
|
|
|
|
const char *s;
|
|
|
|
usercmd_t oldest, oldcmd, newcmd;
|
|
|
|
|
|
|
|
while (1) {
|
|
|
|
if (net_message->badread) {
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("SV_ReadClientMessage: badread\n");
|
2004-02-21 05:09:02 +00:00
|
|
|
client_drop (cl);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
c = MSG_ReadByte (net_message);
|
|
|
|
if (c == -1)
|
|
|
|
return;
|
|
|
|
|
|
|
|
switch (c) {
|
|
|
|
default:
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("SV_ReadClientMessage: unknown command char\n");
|
2004-02-21 05:09:02 +00:00
|
|
|
client_drop (cl);
|
|
|
|
return;
|
|
|
|
case clc_nop:
|
|
|
|
break;
|
|
|
|
case clc_delta:
|
|
|
|
/*cl->delta_sequence = */MSG_ReadByte (net_message);
|
|
|
|
break;
|
|
|
|
case clc_move:
|
|
|
|
/*if (move_issued)
|
|
|
|
return; // someone is trying to cheat...
|
|
|
|
move_issued = true;*/
|
|
|
|
/*checksumIndex = */MSG_GetReadCount (net_message);
|
|
|
|
/*checksum = (byte) */MSG_ReadByte (net_message);
|
|
|
|
// read loss percentage
|
|
|
|
/*cl->lossage = */MSG_ReadByte (net_message);
|
2005-04-27 12:16:15 +00:00
|
|
|
MSG_ReadDeltaUsercmd (net_message, &nullcmd, &oldest);
|
|
|
|
MSG_ReadDeltaUsercmd (net_message, &oldest, &oldcmd);
|
|
|
|
MSG_ReadDeltaUsercmd (net_message, &oldcmd, &newcmd);
|
2004-02-21 05:09:02 +00:00
|
|
|
#if 0
|
|
|
|
if (cl->state != cs_spawned)
|
|
|
|
break;
|
|
|
|
// if the checksum fails, ignore the rest of the packet
|
|
|
|
calculatedChecksum =
|
|
|
|
COM_BlockSequenceCRCByte (net_message->message->data +
|
|
|
|
checksumIndex + 1,
|
|
|
|
MSG_GetReadCount (net_message) -
|
|
|
|
checksumIndex - 1, seq_hash);
|
|
|
|
if (calculatedChecksum != checksum) {
|
|
|
|
Con_DPrintf
|
|
|
|
("Failed command checksum for %s(%d) (%d != %d)\n",
|
|
|
|
cl->name, cl->netchan.incoming_sequence, checksum,
|
|
|
|
calculatedChecksum);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!sv.paused) {
|
|
|
|
SV_PreRunCmd ();
|
|
|
|
if (net_drop < 20) {
|
|
|
|
while (net_drop > 2) {
|
|
|
|
SV_RunCmd (&cl->lastcmd, 0);
|
|
|
|
net_drop--;
|
|
|
|
}
|
|
|
|
if (net_drop > 1)
|
|
|
|
SV_RunCmd (&oldest, 0);
|
|
|
|
if (net_drop > 0)
|
|
|
|
SV_RunCmd (&oldcmd, 0);
|
|
|
|
}
|
|
|
|
SV_RunCmd (&newcmd, 0);
|
|
|
|
SV_PostRunCmd ();
|
|
|
|
}
|
|
|
|
cl->lastcmd = newcmd;
|
|
|
|
cl->lastcmd.buttons = 0; // avoid multiple fires on lag
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case clc_stringcmd:
|
|
|
|
s = MSG_ReadString (net_message);
|
|
|
|
client_exec_command (cl, s);
|
|
|
|
break;
|
|
|
|
case clc_tmove:
|
|
|
|
MSG_ReadCoordV (net_message, o);
|
|
|
|
#if 0
|
|
|
|
// only allowed by spectators
|
|
|
|
if (host_client->spectator) {
|
|
|
|
VectorCopy (o, SVvector (sv_player, origin));
|
|
|
|
SV_LinkEdict (sv_player, false);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case clc_upload:
|
|
|
|
size = MSG_ReadShort (net_message);
|
|
|
|
MSG_ReadByte (net_message);
|
|
|
|
net_message->readcount += size;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-20 05:37:47 +00:00
|
|
|
static void
|
2004-02-21 02:31:22 +00:00
|
|
|
client_handler (connection_t *con, void *object)
|
2004-02-20 05:37:47 +00:00
|
|
|
{
|
|
|
|
client_t *cl = (client_t *) object;
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
if (net_message->message->cursize < 11) {
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("%s: Runt packet\n", NET_AdrToString (net_from));
|
2004-02-21 05:09:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Netchan_Process (&cl->netchan)) {
|
|
|
|
// this is a valid, sequenced packet, so process it
|
|
|
|
//svs.stats.packets++;
|
|
|
|
//cl->send_message = true;
|
|
|
|
//if (cl->state != cs_zombie)
|
|
|
|
client_parse_message (cl);
|
2004-02-22 06:19:38 +00:00
|
|
|
if (cl->backbuf.num_backbuf)
|
|
|
|
MSG_Reliable_Send (&cl->backbuf);
|
2005-05-07 13:57:07 +00:00
|
|
|
Netchan_Transmit (&cl->netchan, cl->datagram.cursize,
|
|
|
|
cl->datagram.data);
|
|
|
|
SZ_Clear (&cl->datagram);
|
2004-02-21 05:09:02 +00:00
|
|
|
if (cl->drop) {
|
|
|
|
Connection_Del (cl->con);
|
|
|
|
Info_Destroy (cl->userinfo);
|
|
|
|
free (cl);
|
|
|
|
}
|
|
|
|
}
|
2004-02-20 05:37:47 +00:00
|
|
|
}
|
|
|
|
|
2004-02-21 05:09:02 +00:00
|
|
|
static void
|
|
|
|
client_connect (connection_t *con, void *object)
|
2004-02-20 05:37:47 +00:00
|
|
|
{
|
2004-02-21 05:09:02 +00:00
|
|
|
challenge_t *ch = (challenge_t *) object;
|
2004-02-20 05:37:47 +00:00
|
|
|
client_t *cl;
|
2004-02-21 05:09:02 +00:00
|
|
|
const char *str;
|
|
|
|
info_t *userinfo;
|
|
|
|
int version, qport, challenge, seq;
|
|
|
|
|
|
|
|
MSG_BeginReading (net_message);
|
|
|
|
seq = MSG_ReadLong (net_message);
|
|
|
|
if (seq != -1) {
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("unexpected connected packet\n");
|
2004-02-21 05:09:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
str = MSG_ReadString (net_message);
|
|
|
|
COM_TokenizeString (str, qtv_args);
|
|
|
|
cmd_args = qtv_args;
|
|
|
|
if (strcmp (Cmd_Argv (0), "connect")) {
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("unexpected connected packet\n");
|
2004-02-21 05:09:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
version = atoi (Cmd_Argv (1));
|
|
|
|
if (version != PROTOCOL_VERSION) {
|
|
|
|
Netchan_OutOfBandPrint (net_from, "%c\nServer is version %s.\n",
|
|
|
|
A2C_PRINT, QW_VERSION);
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("* rejected connect from version %i\n", version);
|
2004-02-21 05:09:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
qport = atoi (Cmd_Argv (2));
|
|
|
|
challenge = atoi (Cmd_Argv (3));
|
|
|
|
if (!(con = Connection_Find (&net_from))
|
|
|
|
|| (ch = con->object)->challenge != challenge) {
|
|
|
|
Netchan_OutOfBandPrint (net_from, "%c\nBad challenge.\n",
|
|
|
|
A2C_PRINT);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
free (con->object);
|
|
|
|
userinfo = Info_ParseString (Cmd_Argv (4), 0, 0);
|
|
|
|
if (!userinfo) {
|
|
|
|
Netchan_OutOfBandPrint (net_from, "%c\nInvalid userinfo string.\n",
|
|
|
|
A2C_PRINT);
|
|
|
|
return;
|
|
|
|
}
|
2004-02-20 05:37:47 +00:00
|
|
|
|
|
|
|
cl = calloc (1, sizeof (client_t));
|
|
|
|
Netchan_Setup (&cl->netchan, con->address, qport, NC_READ_QPORT);
|
2004-02-22 06:19:38 +00:00
|
|
|
cl->backbuf.netchan = &cl->netchan;
|
|
|
|
cl->backbuf.name = "FIXME";
|
2004-02-21 05:09:02 +00:00
|
|
|
cl->userinfo = userinfo;
|
|
|
|
cl->con = con;
|
2004-02-20 05:37:47 +00:00
|
|
|
con->object = cl;
|
|
|
|
con->handler = client_handler;
|
2004-02-21 05:09:02 +00:00
|
|
|
|
2005-05-07 13:57:07 +00:00
|
|
|
cl->datagram.allowoverflow = true;
|
|
|
|
cl->datagram.maxsize = sizeof (cl->datagram_buf);
|
|
|
|
cl->datagram.data = cl->datagram_buf;
|
|
|
|
|
2005-05-07 11:42:04 +00:00
|
|
|
qtv_printf ("client %s (%s) connected\n",
|
2004-02-21 05:09:02 +00:00
|
|
|
Info_ValueForKey (userinfo, "name"),
|
2004-02-20 05:37:47 +00:00
|
|
|
NET_AdrToString (con->address));
|
2004-02-21 05:09:02 +00:00
|
|
|
|
|
|
|
Netchan_OutOfBandPrint (net_from, "%c", S2C_CONNECTION);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Client_NewConnection (void)
|
|
|
|
{
|
|
|
|
challenge_t *ch;
|
|
|
|
connection_t *con;
|
|
|
|
|
|
|
|
if ((con = Connection_Find (&net_from))) {
|
|
|
|
if (con->handler == client_handler)
|
|
|
|
return;
|
|
|
|
ch = con->object;
|
|
|
|
} else {
|
|
|
|
ch = malloc (sizeof (challenge_t));
|
|
|
|
}
|
|
|
|
ch->challenge = (rand () << 16) ^ rand ();
|
|
|
|
ch->time = realtime;
|
|
|
|
if (!con)
|
|
|
|
con = Connection_Add (&net_from, ch, 0);
|
|
|
|
Netchan_OutOfBandPrint (net_from, "%c%i QF", S2C_CHALLENGE, ch->challenge);
|
|
|
|
con->handler = client_connect;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char *
|
|
|
|
ucmds_getkey (void *_a, void *unused)
|
|
|
|
{
|
|
|
|
ucmd_t *a = (ucmd_t*)_a;
|
|
|
|
return a->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Client_Init (void)
|
|
|
|
{
|
2004-07-13 19:14:01 +00:00
|
|
|
size_t i;
|
2004-02-21 05:09:02 +00:00
|
|
|
|
|
|
|
ucmd_table = Hash_NewTable (251, ucmds_getkey, 0, 0);
|
|
|
|
for (i = 0; i < sizeof (ucmds) / sizeof (ucmds[0]); i++)
|
|
|
|
Hash_Add (ucmd_table, &ucmds[i]);
|
2004-02-20 05:37:47 +00:00
|
|
|
}
|