mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 08:20:40 +00:00
[build] Fix a pile of gcc 10 issues
gcc got stricter about array accesses, complicating progs macros, and much better at detecting buffer overflows.
This commit is contained in:
parent
af814ff9a8
commit
ab04a1915e
30 changed files with 125 additions and 107 deletions
|
@ -738,7 +738,7 @@ SpectatorMove (void)
|
|||
// friction
|
||||
speed = DotProduct (pmove.velocity, pmove.velocity);
|
||||
if (speed < 1) {
|
||||
VectorZero (pmove.velocity)
|
||||
VectorZero (pmove.velocity);
|
||||
} else {
|
||||
speed = sqrt (speed);
|
||||
drop = 0;
|
||||
|
|
|
@ -101,8 +101,8 @@ free_edict (progs_t *pr, edict_t *ent)
|
|||
ent->v[sv_fields.frame].float_var = 0;
|
||||
ent->v[sv_fields.nextthink].float_var = -1;
|
||||
ent->v[sv_fields.solid].float_var = 0;
|
||||
memset (ent->v[sv_fields.origin].vector_var, 0, 3*sizeof (float));
|
||||
memset (ent->v[sv_fields.angles].vector_var, 0, 3*sizeof (float));
|
||||
memset (&ent->v[sv_fields.origin].vector_var, 0, 3*sizeof (float));
|
||||
memset (&ent->v[sv_fields.angles].vector_var, 0, 3*sizeof (float));
|
||||
} else {
|
||||
ED_ClearEdict (pr, ent, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue