mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
Fix compiler warnings (no operational changes)
This commit is contained in:
parent
46090d9665
commit
d83a257bef
5 changed files with 0 additions and 41 deletions
|
@ -34,7 +34,6 @@ UpdateChaseCam(edict_t *ent)
|
||||||
vec3_t forward, right;
|
vec3_t forward, right;
|
||||||
trace_t trace;
|
trace_t trace;
|
||||||
int i;
|
int i;
|
||||||
vec3_t oldgoal;
|
|
||||||
vec3_t angles;
|
vec3_t angles;
|
||||||
|
|
||||||
/* is our chase target gone? */
|
/* is our chase target gone? */
|
||||||
|
@ -47,10 +46,7 @@ UpdateChaseCam(edict_t *ent)
|
||||||
targ = ent->client->chase_target;
|
targ = ent->client->chase_target;
|
||||||
|
|
||||||
VectorCopy(targ->s.origin, ownerv);
|
VectorCopy(targ->s.origin, ownerv);
|
||||||
VectorCopy(ent->s.origin, oldgoal);
|
|
||||||
|
|
||||||
ownerv[2] += targ->viewheight;
|
ownerv[2] += targ->viewheight;
|
||||||
|
|
||||||
VectorCopy(targ->client->v_angle, angles);
|
VectorCopy(targ->client->v_angle, angles);
|
||||||
|
|
||||||
if (angles[PITCH] > 56)
|
if (angles[PITCH] > 56)
|
||||||
|
|
12
src/g_func.c
12
src/g_func.c
|
@ -484,10 +484,7 @@ plat_blocked(edict_t *self, edict_t *other)
|
||||||
if (other)
|
if (other)
|
||||||
{
|
{
|
||||||
/* Hack for entity without it's origin near the model */
|
/* Hack for entity without it's origin near the model */
|
||||||
vec3_t save;
|
|
||||||
VectorCopy(other->s.origin, save);
|
|
||||||
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
||||||
|
|
||||||
BecomeExplosion1(other);
|
BecomeExplosion1(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1394,10 +1391,7 @@ door_blocked(edict_t *self, edict_t *other)
|
||||||
if (other)
|
if (other)
|
||||||
{
|
{
|
||||||
/* Hack for entitiy without their origin near the model */
|
/* Hack for entitiy without their origin near the model */
|
||||||
vec3_t save;
|
|
||||||
VectorCopy(other->s.origin, save);
|
|
||||||
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
||||||
|
|
||||||
BecomeExplosion1(other);
|
BecomeExplosion1(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1881,10 +1875,7 @@ train_blocked(edict_t *self, edict_t *other)
|
||||||
if (other)
|
if (other)
|
||||||
{
|
{
|
||||||
/* Hack for entity without an origin near the model */
|
/* Hack for entity without an origin near the model */
|
||||||
vec3_t save;
|
|
||||||
VectorCopy(other->s.origin, save);
|
|
||||||
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
||||||
|
|
||||||
BecomeExplosion1(other);
|
BecomeExplosion1(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2454,10 +2445,7 @@ door_secret_blocked(edict_t *self, edict_t *other)
|
||||||
if (other)
|
if (other)
|
||||||
{
|
{
|
||||||
/* Hack for entities without their origin near the model */
|
/* Hack for entities without their origin near the model */
|
||||||
vec3_t save;
|
|
||||||
VectorCopy(other->s.origin, save);
|
|
||||||
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
VectorMA(other->absmin, 0.5, other->size, other->s.origin);
|
||||||
|
|
||||||
BecomeExplosion1(other);
|
BecomeExplosion1(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -539,7 +539,6 @@ SV_Push(edict_t *pusher, vec3_t move, vec3_t amove)
|
||||||
{
|
{
|
||||||
int i, e;
|
int i, e;
|
||||||
edict_t *check, *block;
|
edict_t *check, *block;
|
||||||
vec3_t mins, maxs;
|
|
||||||
pushed_t *p;
|
pushed_t *p;
|
||||||
vec3_t org, org2, move2, forward, right, up;
|
vec3_t org, org2, move2, forward, right, up;
|
||||||
vec3_t realmins, realmaxs;
|
vec3_t realmins, realmaxs;
|
||||||
|
@ -563,13 +562,6 @@ SV_Push(edict_t *pusher, vec3_t move, vec3_t amove)
|
||||||
move[i] = 0.125 * (int)temp;
|
move[i] = 0.125 * (int)temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find the bounding box */
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
{
|
|
||||||
mins[i] = pusher->absmin[i] + move[i];
|
|
||||||
maxs[i] = pusher->absmax[i] + move[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we need this for pushing things later */
|
/* we need this for pushing things later */
|
||||||
VectorSubtract(vec3_origin, amove, org);
|
VectorSubtract(vec3_origin, amove, org);
|
||||||
AngleVectors(org, forward, right, up);
|
AngleVectors(org, forward, right, up);
|
||||||
|
|
|
@ -523,21 +523,6 @@ SP_target_spawner(edict_t *self)
|
||||||
void
|
void
|
||||||
use_target_blaster(edict_t *self, edict_t *other, edict_t *activator)
|
use_target_blaster(edict_t *self, edict_t *other, edict_t *activator)
|
||||||
{
|
{
|
||||||
int effect;
|
|
||||||
|
|
||||||
if (self->spawnflags & 2)
|
|
||||||
{
|
|
||||||
effect = 0;
|
|
||||||
}
|
|
||||||
else if (self->spawnflags & 1)
|
|
||||||
{
|
|
||||||
effect = EF_HYPERBLASTER;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
effect = EF_BLASTER;
|
|
||||||
}
|
|
||||||
|
|
||||||
fire_blaster(self, self->s.origin, self->movedir, self->dmg,
|
fire_blaster(self, self->s.origin, self->movedir, self->dmg,
|
||||||
self->speed, EF_BLASTER, MOD_TARGET_BLASTER);
|
self->speed, EF_BLASTER, MOD_TARGET_BLASTER);
|
||||||
gi.sound(self, CHAN_VOICE, self->noise_index, 1, ATTN_NORM, 0);
|
gi.sound(self, CHAN_VOICE, self->noise_index, 1, ATTN_NORM, 0);
|
||||||
|
|
|
@ -206,7 +206,6 @@ DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer)
|
||||||
int sorted[MAX_CLIENTS];
|
int sorted[MAX_CLIENTS];
|
||||||
int sortedscores[MAX_CLIENTS];
|
int sortedscores[MAX_CLIENTS];
|
||||||
int score, total;
|
int score, total;
|
||||||
int picnum;
|
|
||||||
int x, y;
|
int x, y;
|
||||||
gclient_t *cl;
|
gclient_t *cl;
|
||||||
edict_t *cl_ent;
|
edict_t *cl_ent;
|
||||||
|
@ -267,7 +266,6 @@ DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer)
|
||||||
cl = &game.clients[sorted[i]];
|
cl = &game.clients[sorted[i]];
|
||||||
cl_ent = g_edicts + 1 + sorted[i];
|
cl_ent = g_edicts + 1 + sorted[i];
|
||||||
|
|
||||||
picnum = gi.imageindex("i_fixme");
|
|
||||||
x = (i >= 6) ? 160 : 0;
|
x = (i >= 6) ? 160 : 0;
|
||||||
y = 32 + 32 * (i % 6);
|
y = 32 + 32 * (i % 6);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue