mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
PVS Studio: Misc. fixes and FIXMEs
This commit is contained in:
parent
95a3e46bdd
commit
9f22f3d298
4 changed files with 3 additions and 8 deletions
|
@ -83,6 +83,7 @@ R_AliasCheckBBox
|
||||||
static unsigned long
|
static unsigned long
|
||||||
R_AliasCheckFrameBBox( daliasframe_t *frame, float worldxf[3][4] )
|
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,
|
unsigned long aggregate_and_clipcode = ~0U,
|
||||||
aggregate_or_clipcode = 0;
|
aggregate_or_clipcode = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -738,11 +738,8 @@ Qcommon_Frame(int usec)
|
||||||
if (packetframe) {
|
if (packetframe) {
|
||||||
SV_Frame(servertimedelta);
|
SV_Frame(servertimedelta);
|
||||||
servertimedelta = 0;
|
servertimedelta = 0;
|
||||||
}
|
|
||||||
|
|
||||||
|
// Reset deltas if necessary.
|
||||||
// Reset deltas if necessary.
|
|
||||||
if (packetframe) {
|
|
||||||
packetdelta = 0;
|
packetdelta = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,6 +179,7 @@ extern vec3_t vec3_origin;
|
||||||
|
|
||||||
#define IS_NAN(x) (((*(int *)&x) & nanmask) == nanmask)
|
#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 Q_ftol(f) (long)(f)
|
||||||
|
|
||||||
#define DotProduct(x, y) (x[0] * y[0] + x[1] * y[1] + x[2] * y[2])
|
#define DotProduct(x, y) (x[0] * y[0] + x[1] * y[1] + x[2] * y[2])
|
||||||
|
|
|
@ -643,10 +643,6 @@ SV_ClipMoveToEntities(moveclip_t *clip)
|
||||||
clip->trace = trace;
|
clip->trace = trace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (trace.startsolid)
|
|
||||||
{
|
|
||||||
clip->trace.startsolid = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue