Remove unused varibales

src/g_cmds.c:2095:10: warning: unused variable ‘vel’ [-Wunused-variable]
src/g_cmds.c:2094:10: warning: unused variable ‘pos’ [-Wunused-variable]
src/g_trigger.c:1422:10: warning: unused variable ‘endpos’ [-Wunused-variable]
src/p_client.c:1277:15: warning: unused variable ‘nostatus’ [-Wunused-variable]
src/p_client.c:2247:10: warning: unused variable ‘weapon’ [-Wunused-variable]
This commit is contained in:
Denis Pauk 2021-01-30 18:52:45 +02:00
parent 701b470ded
commit c30b70ea00
3 changed files with 50 additions and 55 deletions

View file

@ -117,7 +117,7 @@ void RotateAngles(vec3_t in, vec3_t delta, vec3_t out)
ytemp = c*Y[1] + s*Y[0]; ytemp = c*Y[1] + s*Y[0];
Y[0] = xtemp; Y[1] = ytemp; Y[0] = xtemp; Y[1] = ytemp;
} }
out[PITCH] = (180./M_PI) * atan2(X[2],X[0]); out[PITCH] = (180./M_PI) * atan2(X[2],X[0]);
if(out[PITCH] != 0) if(out[PITCH] != 0)
{ {
@ -359,7 +359,7 @@ void ShiftItem(edict_t *ent, int direction)
if(!target) return; if(!target) return;
ent->client->shift_dir = direction; ent->client->shift_dir = direction;
VectorClear(move); VectorClear(move);
VectorCopy(ent->s.origin,start); VectorCopy(ent->s.origin,start);
VectorAdd(target->s.origin,target->origin_offset,end); VectorAdd(target->s.origin,target->origin_offset,end);
@ -1057,7 +1057,7 @@ void Cmd_InvUse_f (edict_t *ent)
} }
} }
#endif #endif
it->use (ent, it); it->use (ent, it);
} }
@ -1390,7 +1390,7 @@ void Cmd_Say_f (edict_t *ent, qboolean team, qboolean arg0)
i = cl->flood_whenhead - flood_msgs->value + 1; i = cl->flood_whenhead - flood_msgs->value + 1;
if (i < 0) if (i < 0)
i = (sizeof(cl->flood_when)/sizeof(cl->flood_when[0])) + i; i = (sizeof(cl->flood_when)/sizeof(cl->flood_when[0])) + i;
if (cl->flood_when[i] && if (cl->flood_when[i] &&
level.time - cl->flood_when[i] < flood_persecond->value) { level.time - cl->flood_when[i] < flood_persecond->value) {
cl->flood_locktill = level.time + flood_waitdelay->value; cl->flood_locktill = level.time + flood_waitdelay->value;
gi.cprintf(ent, PRINT_CHAT, "Flood protection: You can't talk for %d seconds.\n", gi.cprintf(ent, PRINT_CHAT, "Flood protection: You can't talk for %d seconds.\n",
@ -1699,7 +1699,7 @@ void SpawnForcewall(edict_t *player)
edict_t *wall; edict_t *wall;
vec3_t forward, point, start; vec3_t forward, point, start;
trace_t tr; trace_t tr;
wall = G_Spawn(); wall = G_Spawn();
VectorCopy(player->s.origin,start); VectorCopy(player->s.origin,start);
start[2] += player->viewheight; start[2] += player->viewheight;
@ -1707,19 +1707,19 @@ void SpawnForcewall(edict_t *player)
VectorMA(start,8192,forward,point); VectorMA(start,8192,forward,point);
tr = gi.trace(start,NULL,NULL,point,player,MASK_SOLID); tr = gi.trace(start,NULL,NULL,point,player,MASK_SOLID);
VectorCopy(tr.endpos,wall->s.origin); VectorCopy(tr.endpos,wall->s.origin);
if(fabs(forward[0]) > fabs(forward[1])) if(fabs(forward[0]) > fabs(forward[1]))
{ {
wall->pos1[0] = wall->pos2[0] = wall->s.origin[0]; wall->pos1[0] = wall->pos2[0] = wall->s.origin[0];
wall->mins[0] = -1; wall->mins[0] = -1;
wall->maxs[0] = 1; wall->maxs[0] = 1;
VectorCopy(wall->s.origin,point); VectorCopy(wall->s.origin,point);
point[1] -= 8192; point[1] -= 8192;
tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID); tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID);
wall->pos1[1] = tr.endpos[1]; wall->pos1[1] = tr.endpos[1];
wall->mins[1] = wall->pos1[1] - wall->s.origin[1]; wall->mins[1] = wall->pos1[1] - wall->s.origin[1];
point[1] = wall->s.origin[1] + 8192; point[1] = wall->s.origin[1] + 8192;
tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID); tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID);
wall->pos2[1] = tr.endpos[1]; wall->pos2[1] = tr.endpos[1];
@ -1732,24 +1732,24 @@ void SpawnForcewall(edict_t *player)
tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID); tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID);
wall->pos1[0] = tr.endpos[0]; wall->pos1[0] = tr.endpos[0];
wall->mins[0] = wall->pos1[0] - wall->s.origin[0]; wall->mins[0] = wall->pos1[0] - wall->s.origin[0];
point[0] = wall->s.origin[0] + 8192; point[0] = wall->s.origin[0] + 8192;
tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID); tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID);
wall->pos2[0] = tr.endpos[0]; wall->pos2[0] = tr.endpos[0];
wall->maxs[0] = wall->pos2[0] - wall->s.origin[0]; wall->maxs[0] = wall->pos2[0] - wall->s.origin[0];
wall->pos1[1] = wall->pos2[1] = wall->s.origin[1]; wall->pos1[1] = wall->pos2[1] = wall->s.origin[1];
wall->mins[1] = -1; wall->mins[1] = -1;
wall->maxs[1] = 1; wall->maxs[1] = 1;
} }
wall->mins[2] = 0; wall->mins[2] = 0;
VectorCopy(wall->s.origin,point); VectorCopy(wall->s.origin,point);
point[2] = wall->s.origin[2] + 8192; point[2] = wall->s.origin[2] + 8192;
tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID); tr = gi.trace(wall->s.origin,NULL,NULL,point,NULL,MASK_SOLID);
wall->maxs[2] = tr.endpos[2] - wall->s.origin[2]; wall->maxs[2] = tr.endpos[2] - wall->s.origin[2];
wall->pos1[2] = wall->pos2[2] = tr.endpos[2]; wall->pos1[2] = wall->pos2[2] = tr.endpos[2];
wall->style = 208; // Color from Q2 palette wall->style = 208; // Color from Q2 palette
wall->movetype = MOVETYPE_NONE; wall->movetype = MOVETYPE_NONE;
wall->solid = SOLID_BBOX; wall->solid = SOLID_BBOX;
@ -1767,7 +1767,7 @@ void ForcewallOff(edict_t *player)
{ {
vec3_t forward, point, start; vec3_t forward, point, start;
trace_t tr; trace_t tr;
VectorCopy(player->s.origin,start); VectorCopy(player->s.origin,start);
start[2] += player->viewheight; start[2] += player->viewheight;
AngleVectors(player->client->v_angle,forward,NULL,NULL); AngleVectors(player->client->v_angle,forward,NULL,NULL);
@ -2091,8 +2091,6 @@ void ClientCommand (edict_t *ent)
} }
else if(!Q_stricmp(cmd, "playsound")) else if(!Q_stricmp(cmd, "playsound"))
{ {
vec3_t pos = {0, 0, 0};
vec3_t vel = {0, 0, 0};
if(s_primary->value) if(s_primary->value)
{ {
gi.dprintf("target_playback requires s_primary be set to 0.\n" gi.dprintf("target_playback requires s_primary be set to 0.\n"
@ -2131,7 +2129,7 @@ void ClientCommand (edict_t *ent)
e = LookingAt(ent,0,NULL,NULL); e = LookingAt(ent,0,NULL,NULL);
if(!e) return; if(!e) return;
GameDirRelativePath(parm,filename); GameDirRelativePath(parm,filename);
strcat(filename,".txt"); strcat(filename,".txt");
f = fopen(filename,"w"); f = fopen(filename,"w");
@ -2314,7 +2312,7 @@ void ClientCommand (edict_t *ent)
vec3_t origin; vec3_t origin;
float range; float range;
viewing = LookingAt(ent,0,NULL,&range); viewing = LookingAt(ent,0,NULL,&range);
if(!viewing) if(!viewing)
return; return;
VectorAdd(viewing->s.origin,viewing->origin_offset,origin); VectorAdd(viewing->s.origin,viewing->origin_offset,origin);
gi.dprintf("classname = %s at %s, velocity = %s\n",viewing->classname,vtos(origin),vtos(viewing->velocity)); gi.dprintf("classname = %s at %s, velocity = %s\n",viewing->classname,vtos(origin),vtos(viewing->velocity));
@ -2409,7 +2407,7 @@ void ClientCommand (edict_t *ent)
int skinnum; int skinnum;
viewing = LookingAt(ent,0,NULL,NULL); viewing = LookingAt(ent,0,NULL,NULL);
if(!viewing) if(!viewing)
return; return;
if(parm) { if(parm) {
@ -2425,7 +2423,7 @@ void ClientCommand (edict_t *ent)
{ {
edict_t *e; edict_t *e;
vec3_t forward; vec3_t forward;
if(!parm) if(!parm)
{ {
gi.dprintf("syntax: spawn <classname>\n"); gi.dprintf("syntax: spawn <classname>\n");
@ -2443,7 +2441,7 @@ void ClientCommand (edict_t *ent)
{ {
edict_t *e; edict_t *e;
vec3_t forward; vec3_t forward;
if(gi.argc() < 3) if(gi.argc() < 3)
{ {
gi.dprintf("syntax: spawngoodguy <modelname> <weapon>\n"); gi.dprintf("syntax: spawngoodguy <modelname> <weapon>\n");
@ -2471,10 +2469,10 @@ void ClientCommand (edict_t *ent)
decoy->classname = "fakeplayer"; decoy->classname = "fakeplayer";
memcpy(&decoy->s,&ent->s,sizeof(entity_state_t)); memcpy(&decoy->s,&ent->s,sizeof(entity_state_t));
decoy->s.number = decoy-g_edicts; decoy->s.number = decoy-g_edicts;
decoy->s.frame = ent->s.frame; decoy->s.frame = ent->s.frame;
AngleVectors(ent->client->v_angle,forward,NULL,NULL); AngleVectors(ent->client->v_angle,forward,NULL,NULL);
VectorMA(ent->s.origin,64,forward,decoy->s.origin); VectorMA(ent->s.origin,64,forward,decoy->s.origin);
decoy->s.angles[YAW] = ent->s.angles[YAW]; decoy->s.angles[YAW] = ent->s.angles[YAW];
decoy->takedamage = DAMAGE_AIM; decoy->takedamage = DAMAGE_AIM;
decoy->flags = (ent->flags & FL_NOTARGET); decoy->flags = (ent->flags & FL_NOTARGET);
decoy->movetype = MOVETYPE_TOSS; decoy->movetype = MOVETYPE_TOSS;
@ -2491,7 +2489,7 @@ void ClientCommand (edict_t *ent)
decoy->nextthink = level.time + FRAMETIME; decoy->nextthink = level.time + FRAMETIME;
VectorCopy(ent->mins,decoy->mins); VectorCopy(ent->mins,decoy->mins);
VectorCopy(ent->maxs,decoy->maxs); VectorCopy(ent->maxs,decoy->maxs);
gi.linkentity (decoy); gi.linkentity (decoy);
} }
else if (!Q_stricmp(cmd,"switch")) { else if (!Q_stricmp(cmd,"switch")) {
extern mmove_t actor_move_switch; extern mmove_t actor_move_switch;

View file

@ -1419,7 +1419,6 @@ void trigger_look_touch (edict_t *self, edict_t *other, cplane_t *plane, csurfac
// Then trigger only fires if looking at TARGET, not trigger bbox // Then trigger only fires if looking at TARGET, not trigger bbox
edict_t *target; edict_t *target;
int num_triggered=0; int num_triggered=0;
vec3_t endpos;
target = G_Find(NULL,FOFS(targetname),self->target); target = G_Find(NULL,FOFS(targetname),self->target);
while(target && !num_triggered) while(target && !num_triggered)

View file

@ -488,7 +488,7 @@ void LookAtKiller (edict_t *self, edict_t *inflictor, edict_t *attacker)
} }
if (self->client->killer_yaw < 0) if (self->client->killer_yaw < 0)
self->client->killer_yaw += 360; self->client->killer_yaw += 360;
} }
@ -645,7 +645,7 @@ void SelectStartWeapon (gclient_t *client, int style)
// Lazarus: We allow choice of weapons (or no weapon) at startup // Lazarus: We allow choice of weapons (or no weapon) at startup
// If style is non-zero, first clear player inventory of all // If style is non-zero, first clear player inventory of all
// weapons and ammo that might have been passed over through // weapons and ammo that might have been passed over through
// target_changelevel or acquired when previously called by // target_changelevel or acquired when previously called by
// InitClientPersistant // InitClientPersistant
if(style) if(style)
{ {
@ -784,7 +784,7 @@ void InitClientResp (gclient_t *client)
================== ==================
SaveClientData SaveClientData
Some information that should be persistant, like health, Some information that should be persistant, like health,
is still stored in the edict structure, so it needs to is still stored in the edict structure, so it needs to
be mirrored out to the client structure before all the be mirrored out to the client structure before all the
edicts are wiped. edicts are wiped.
@ -1181,7 +1181,7 @@ void respawn (edict_t *self)
gi.AddCommandString ("menu_loadgame\n"); gi.AddCommandString ("menu_loadgame\n");
} }
/* /*
* only called when pers.spectator changes * only called when pers.spectator changes
* note that resp.spectator should be the opposite of pers.spectator here * note that resp.spectator should be the opposite of pers.spectator here
*/ */
@ -1194,8 +1194,8 @@ void spectator_respawn (edict_t *ent)
if (ent->client->pers.spectator) { if (ent->client->pers.spectator) {
char *value = Info_ValueForKey (ent->client->pers.userinfo, "spectator"); char *value = Info_ValueForKey (ent->client->pers.userinfo, "spectator");
if (*spectator_password->string && if (*spectator_password->string &&
strcmp(spectator_password->string, "none") && strcmp(spectator_password->string, "none") &&
strcmp(spectator_password->string, value)) { strcmp(spectator_password->string, value)) {
gi.cprintf(ent, PRINT_HIGH, "Spectator password incorrect.\n"); gi.cprintf(ent, PRINT_HIGH, "Spectator password incorrect.\n");
ent->client->pers.spectator = false; ent->client->pers.spectator = false;
@ -1223,7 +1223,7 @@ void spectator_respawn (edict_t *ent)
// he was a spectator and wants to join the game // he was a spectator and wants to join the game
// he must have the right password // he must have the right password
char *value = Info_ValueForKey (ent->client->pers.userinfo, "password"); char *value = Info_ValueForKey (ent->client->pers.userinfo, "password");
if (*password->string && strcmp(password->string, "none") && if (*password->string && strcmp(password->string, "none") &&
strcmp(password->string, value)) { strcmp(password->string, value)) {
gi.cprintf(ent, PRINT_HIGH, "Password incorrect.\n"); gi.cprintf(ent, PRINT_HIGH, "Password incorrect.\n");
ent->client->pers.spectator = true; ent->client->pers.spectator = true;
@ -1255,7 +1255,7 @@ void spectator_respawn (edict_t *ent)
ent->client->respawn_time = level.time; ent->client->respawn_time = level.time;
if (ent->client->pers.spectator) if (ent->client->pers.spectator)
gi.bprintf (PRINT_HIGH, "%s has moved to the sidelines\n", ent->client->pers.netname); gi.bprintf (PRINT_HIGH, "%s has moved to the sidelines\n", ent->client->pers.netname);
else else
gi.bprintf (PRINT_HIGH, "%s joined the game\n", ent->client->pers.netname); gi.bprintf (PRINT_HIGH, "%s joined the game\n", ent->client->pers.netname);
@ -1274,7 +1274,6 @@ a deathmatch.
*/ */
void PutClientInServer (edict_t *ent) void PutClientInServer (edict_t *ent)
{ {
extern int nostatus;
vec3_t mins = {-16, -16, -24}; vec3_t mins = {-16, -16, -24};
vec3_t maxs = {16, 16, 32}; vec3_t maxs = {16, 16, 32};
int index; int index;
@ -1545,7 +1544,7 @@ void PutClientInServer (edict_t *ent)
===================== =====================
ClientBeginDeathmatch ClientBeginDeathmatch
A client has just connected to the server in A client has just connected to the server in
deathmatch mode, so clear everything out before starting them. deathmatch mode, so clear everything out before starting them.
===================== =====================
*/ */
@ -1594,7 +1593,7 @@ void ClientBegin (edict_t *ent)
// Lazarus: Set the alias for our alternate attack // Lazarus: Set the alias for our alternate attack
stuffcmd(ent, "alias +attack2 attack2_on; alias -attack2 attack2_off\n"); stuffcmd(ent, "alias +attack2 attack2_on; alias -attack2 attack2_off\n");
if (deathmatch->value) if (deathmatch->value)
{ {
ClientBeginDeathmatch (ent); ClientBeginDeathmatch (ent);
@ -1781,8 +1780,8 @@ qboolean ClientConnect (edict_t *ent, char *userinfo)
if (deathmatch->value && *value && strcmp(value, "0")) { if (deathmatch->value && *value && strcmp(value, "0")) {
int i, numspec; int i, numspec;
if (*spectator_password->string && if (*spectator_password->string &&
strcmp(spectator_password->string, "none") && strcmp(spectator_password->string, "none") &&
strcmp(spectator_password->string, value)) { strcmp(spectator_password->string, value)) {
Info_SetValueForKey(userinfo, "rejmsg", "Spectator password required or incorrect."); Info_SetValueForKey(userinfo, "rejmsg", "Spectator password required or incorrect.");
return false; return false;
@ -1800,7 +1799,7 @@ qboolean ClientConnect (edict_t *ent, char *userinfo)
} else { } else {
// check for a password // check for a password
value = Info_ValueForKey (userinfo, "password"); value = Info_ValueForKey (userinfo, "password");
if (*password->string && strcmp(password->string, "none") && if (*password->string && strcmp(password->string, "none") &&
strcmp(password->string, value)) { strcmp(password->string, value)) {
Info_SetValueForKey(userinfo, "rejmsg", "Password required or incorrect."); Info_SetValueForKey(userinfo, "rejmsg", "Password required or incorrect.");
return false; return false;
@ -2007,7 +2006,7 @@ void ClientSpycam(edict_t *ent)
camera = G_FindNextCamera(camera,client->monitor); camera = G_FindNextCamera(camera,client->monitor);
else else
camera = G_FindPrevCamera(camera,client->monitor); camera = G_FindPrevCamera(camera,client->monitor);
if(camera) if(camera)
{ {
if(!camera->viewer) if(!camera->viewer)
@ -2046,13 +2045,13 @@ void ClientSpycam(edict_t *ent)
if((abs(client->ucmd.forwardmove) > 199) && (camera->groundentity)) if((abs(client->ucmd.forwardmove) > 199) && (camera->groundentity))
{ {
// walk/run // walk/run
edict_t *thing; edict_t *thing;
vec3_t end; vec3_t end;
float dist; float dist;
thing = camera->vehicle; thing = camera->vehicle;
VectorMA(camera->s.origin,8192,forward,end); VectorMA(camera->s.origin,8192,forward,end);
tr = gi.trace(camera->s.origin,camera->mins,camera->maxs,end,camera,MASK_SOLID); tr = gi.trace(camera->s.origin,camera->mins,camera->maxs,end,camera,MASK_SOLID);
if(client->ucmd.forwardmove < 0) if(client->ucmd.forwardmove < 0)
@ -2117,7 +2116,7 @@ void ClientSpycam(edict_t *ent)
actor_stand(camera); actor_stand(camera);
} }
} }
if(client->ucmd.upmove) if(client->ucmd.upmove)
{ {
if((client->ucmd.upmove > 0) && camera->groundentity && !camera->waterlevel) if((client->ucmd.upmove > 0) && camera->groundentity && !camera->waterlevel)
@ -2244,7 +2243,6 @@ void ClientSpycam(edict_t *ent)
} }
else if(is_actor) else if(is_actor)
{ {
int weapon = camera->actor_weapon[camera->actor_current_weapon];
if(!camera->enemy) if(!camera->enemy)
{ {
edict_t *target; edict_t *target;
@ -2272,7 +2270,7 @@ void ClientSpycam(edict_t *ent)
} }
} }
if(client->zoomed) { if(client->zoomed) {
camera->touch_debounce_time = camera->touch_debounce_time =
max(camera->touch_debounce_time, level.time + 1.0); max(camera->touch_debounce_time, level.time + 1.0);
} }
} }
@ -2280,7 +2278,7 @@ void ClientSpycam(edict_t *ent)
VectorMA(camera->s.origin, camera->move_origin[0],forward,start); VectorMA(camera->s.origin, camera->move_origin[0],forward,start);
VectorMA(start, -camera->move_origin[1],left, start); VectorMA(start, -camera->move_origin[1],left, start);
VectorMA(start, camera->move_origin[2],up, start); VectorMA(start, camera->move_origin[2],up, start);
tr = gi.trace(camera->s.origin, NULL, NULL, start, camera, MASK_SOLID); tr = gi.trace(camera->s.origin, NULL, NULL, start, camera, MASK_SOLID);
if(tr.fraction < 1.0) if(tr.fraction < 1.0)
{ {
@ -2291,16 +2289,16 @@ void ClientSpycam(edict_t *ent)
} }
VectorCopy(start,ent->s.origin); VectorCopy(start,ent->s.origin);
VectorCopy(camera->velocity,ent->velocity); VectorCopy(camera->velocity,ent->velocity);
client->resp.cmd_angles[0] = SHORT2ANGLE(client->ucmd.angles[0]); client->resp.cmd_angles[0] = SHORT2ANGLE(client->ucmd.angles[0]);
client->resp.cmd_angles[1] = SHORT2ANGLE(client->ucmd.angles[1]); client->resp.cmd_angles[1] = SHORT2ANGLE(client->ucmd.angles[1]);
client->resp.cmd_angles[2] = SHORT2ANGLE(client->ucmd.angles[2]); client->resp.cmd_angles[2] = SHORT2ANGLE(client->ucmd.angles[2]);
memset (&pm, 0, sizeof(pm)); memset (&pm, 0, sizeof(pm));
pm.s = client->ps.pmove; pm.s = client->ps.pmove;
for (i=0 ; i<3 ; i++) { for (i=0 ; i<3 ; i++) {
pm.s.origin[i] = ent->s.origin[i]*8; pm.s.origin[i] = ent->s.origin[i]*8;
client->ps.pmove.delta_angles[i] = client->ps.pmove.delta_angles[i] =
ANGLE2SHORT(client->ps.viewangles[i] - client->resp.cmd_angles[i]); ANGLE2SHORT(client->ps.viewangles[i] - client->resp.cmd_angles[i]);
} }
if (memcmp(&client->old_pmove, &pm.s, sizeof(pm.s))) if (memcmp(&client->old_pmove, &pm.s, sizeof(pm.s)))
@ -2308,15 +2306,15 @@ void ClientSpycam(edict_t *ent)
pm.cmd = client->ucmd; pm.cmd = client->ucmd;
pm.trace = PM_trace; // adds default parms pm.trace = PM_trace; // adds default parms
pm.pointcontents = gi.pointcontents; pm.pointcontents = gi.pointcontents;
gi.Pmove (&pm); gi.Pmove (&pm);
gi.linkentity (ent); gi.linkentity (ent);
// client->old_owner_angles[0] = client->ucmd.angles[0]; // client->old_owner_angles[0] = client->ucmd.angles[0];
// client->old_owner_angles[1] = client->ucmd.angles[1]; // client->old_owner_angles[1] = client->ucmd.angles[1];
G_TouchTriggers (ent); // we'll only allow touching trigger_look with "Cam Owner" SF G_TouchTriggers (ent); // we'll only allow touching trigger_look with "Cam Owner" SF
} }
/* /*
============== ==============
@ -2503,7 +2501,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
camera_off(ent); camera_off(ent);
client->ps.pmove.pm_type = PM_FREEZE; client->ps.pmove.pm_type = PM_FREEZE;
// can exit intermission after five seconds // can exit intermission after five seconds
if (level.time > level.intermissiontime + 5.0 if (level.time > level.intermissiontime + 5.0
&& (ucmd->buttons & BUTTON_ANY) ) && (ucmd->buttons & BUTTON_ANY) )
level.exitintermission = true; level.exitintermission = true;
@ -2752,7 +2750,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
{ {
vec3_t point; vec3_t point;
vec3_t end; vec3_t end;
vec3_t deltapos, deltavel; vec3_t deltapos, deltavel;
float frac; float frac;
@ -2774,7 +2772,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
{ {
trace_t tr; trace_t tr;
float dist; float dist;
VectorCopy(oldorigin,point); VectorCopy(oldorigin,point);
point[2] += ent->maxs[2]; point[2] += ent->maxs[2];
end[0] = point[0]; end[1] = point[1]; end[2] = oldorigin[2] + ent->mins[2]; end[0] = point[0]; end[1] = point[1]; end[2] = oldorigin[2] + ent->mins[2];