From ba6d26302a082b048dad47893b3417781249d145 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 3 Dec 2000 04:57:23 +0000 Subject: [PATCH] no more IDGODS or idgods --- source/host_cmd.c | 56 ----------------------------------------------- source/net_main.c | 25 --------------------- 2 files changed, 81 deletions(-) diff --git a/source/host_cmd.c b/source/host_cmd.c index 4358411..21d9d9e 100644 --- a/source/host_cmd.c +++ b/source/host_cmd.c @@ -989,59 +989,6 @@ void Host_Version_f (void) Con_Printf ("Exe: "__TIME__" "__DATE__"\n"); } -#ifdef IDGODS -void Host_Please_f (void) -{ - client_t *cl; - int j; - - if (cmd_source != src_command) - return; - - if ((Cmd_Argc () == 3) && strcmp(Cmd_Argv(1), "#") == 0) - { - j = atof(Cmd_Argv(2)) - 1; - if (j < 0 || j >= svs.maxclients) - return; - if (!svs.clients[j].active) - return; - cl = &svs.clients[j]; - if (cl->privileged) - { - cl->privileged = false; - cl->edict->v.flags = (int)cl->edict->v.flags & ~(FL_GODMODE|FL_NOTARGET); - cl->edict->v.movetype = MOVETYPE_WALK; - noclip_anglehack = false; - } - else - cl->privileged = true; - } - - if (Cmd_Argc () != 2) - return; - - for (j=0, cl = svs.clients ; jactive) - continue; - if (strcasecmp(cl->name, Cmd_Argv(1)) == 0) - { - if (cl->privileged) - { - cl->privileged = false; - cl->edict->v.flags = (int)cl->edict->v.flags & ~(FL_GODMODE|FL_NOTARGET); - cl->edict->v.movetype = MOVETYPE_WALK; - noclip_anglehack = false; - } - else - cl->privileged = true; - break; - } - } -} -#endif - - void Host_Say(qboolean teamonly) { client_t *client; @@ -1931,9 +1878,6 @@ void Host_InitCommands (void) Cmd_AddCommand ("name", Host_Name_f); Cmd_AddCommand ("noclip", Host_Noclip_f); Cmd_AddCommand ("version", Host_Version_f); -#ifdef IDGODS - Cmd_AddCommand ("please", Host_Please_f); -#endif Cmd_AddCommand ("say", Host_Say_f); Cmd_AddCommand ("say_team", Host_Say_Team_f); Cmd_AddCommand ("tell", Host_Tell_f); diff --git a/source/net_main.c b/source/net_main.c index a3b21fa..56b2e20 100644 --- a/source/net_main.c +++ b/source/net_main.c @@ -94,10 +94,6 @@ cvar_t *config_modem_clear; cvar_t *config_modem_init; cvar_t *config_modem_hangup; -#ifdef IDGODS -cvar_t *idgods; -#endif - int vcrFile = -1; qboolean recording = false; @@ -878,9 +874,6 @@ void NET_Init (void) config_modem_clear = Cvar_Get("_config_modem_clear", "ATZ", CVAR_ARCHIVE, "None"); config_modem_init = Cvar_Get("_config_modem_init", "", CVAR_ARCHIVE, "None"); config_modem_hangup = Cvar_Get("_config_modem_hangup", "AT H", CVAR_ARCHIVE, "None"); -#ifdef IDGODS - idgods = Cvar_Get("idgods", "0", CVAR_NONE, "None"); -#endif Cmd_AddCommand ("slist", NET_Slist_f); Cmd_AddCommand ("listen", NET_Listen_f); @@ -995,21 +988,3 @@ void SchedulePollProcedure(PollProcedure *proc, double timeOffset) proc->next = pp; prev->next = proc; } - - -#ifdef IDGODS -#define IDNET 0xc0f62800 - -qboolean IsID(struct qsockaddr *addr) -{ - if (!idgods->int_val) - return false; - - if (addr->sa_family != 2) - return false; - - if ((BigLong(*(int *)&addr->sa_data[2]) & 0xffffff00) == IDNET) - return true; - return false; -} -#endif