Fix various warnings

This commit is contained in:
Tim Angus committed 2025-09-07 17:03:20 +01:00
1 parent 549b686e22
commit f976711fb4
58 files changed
+384 -425

No files matched your search

+4 -2
View File
@@ -99,8 +99,10 @@ void CG_CheckOrderPending(void) {
}
if (cg_currentSelectedPlayer.integer == numSortedTeamPlayers) {
// to everyone
trap_SendConsoleCommand(va("cmd vsay_team %s\n", p2));
if (p2) {
// to everyone
trap_SendConsoleCommand(va("cmd vsay_team %s\n", p2));
}
} else {
// for the player self
if (sortedTeamPlayers[cg_currentSelectedPlayer.integer] == cg.snap->ps.clientNum && p1) {
+7 -7
View File
@@ -574,12 +574,12 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
{
vec3_t rr, ru;
vec3_t rotate_ang;
float alpha;
float pAlpha;
alpha = p->alpha;
pAlpha = p->alpha;
if ( cgs.glconfig.hardwareType == GLHW_RAGEPRO )
alpha = 1;
pAlpha = 1;
if (p->roll)
{
@@ -601,7 +601,7 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
verts[0].modulate[0] = 111;
verts[0].modulate[1] = 19;
verts[0].modulate[2] = 9;
verts[0].modulate[3] = 255 * alpha;
verts[0].modulate[3] = 255 * pAlpha;
VectorMA (org, -p->height, ru, point);
VectorMA (point, p->width, rr, point);
@@ -611,7 +611,7 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
verts[1].modulate[0] = 111;
verts[1].modulate[1] = 19;
verts[1].modulate[2] = 9;
verts[1].modulate[3] = 255 * alpha;
verts[1].modulate[3] = 255 * pAlpha;
VectorMA (org, p->height, ru, point);
VectorMA (point, p->width, rr, point);
@@ -621,7 +621,7 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
verts[2].modulate[0] = 111;
verts[2].modulate[1] = 19;
verts[2].modulate[2] = 9;
verts[2].modulate[3] = 255 * alpha;
verts[2].modulate[3] = 255 * pAlpha;
VectorMA (org, p->height, ru, point);
VectorMA (point, -p->width, rr, point);
@@ -631,7 +631,7 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
verts[3].modulate[0] = 111;
verts[3].modulate[1] = 19;
verts[3].modulate[2] = 9;
verts[3].modulate[3] = 255 * alpha;
verts[3].modulate[3] = 255 * pAlpha;
}
else if (p->type == P_FLAT_SCALEUP)