PVS Studio: Misc. fixes and FIXMEs

This commit is contained in:
Daniel Gibson 2020-02-09 05:46:38 +01:00 committed by Yamagi
parent 95a3e46bdd
commit 9f22f3d298
4 changed files with 3 additions and 8 deletions

View file

@ -83,6 +83,7 @@ R_AliasCheckBBox
static unsigned long
R_AliasCheckFrameBBox( daliasframe_t *frame, float worldxf[3][4] )
{
// FIXME: should this really be using long and not int32_t or sth?
unsigned long aggregate_and_clipcode = ~0U,
aggregate_or_clipcode = 0;
int i;

View file

@ -738,11 +738,8 @@ Qcommon_Frame(int usec)
if (packetframe) {
SV_Frame(servertimedelta);
servertimedelta = 0;
}
// Reset deltas if necessary.
if (packetframe) {
// Reset deltas if necessary.
packetdelta = 0;
}
}

View file

@ -179,6 +179,7 @@ extern vec3_t vec3_origin;
#define IS_NAN(x) (((*(int *)&x) & nanmask) == nanmask)
// FIXME: use int instead of long, it's only used with int anyway?
#define Q_ftol(f) (long)(f)
#define DotProduct(x, y) (x[0] * y[0] + x[1] * y[1] + x[2] * y[2])

View file

@ -643,10 +643,6 @@ SV_ClipMoveToEntities(moveclip_t *clip)
clip->trace = trace;
}
}
else if (trace.startsolid)
{
clip->trace.startsolid = true;
}
}
}