mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
Treat cs_server clients like non-client entities for GIB "frag" event
This commit is contained in:
parent
85beae40f0
commit
d9db1a0c04
1 changed files with 5 additions and 3 deletions
|
@ -646,7 +646,7 @@ PF_findradius (progs_t *pr)
|
||||||
emins = SVvector (ent, mins);
|
emins = SVvector (ent, mins);
|
||||||
emaxs = SVvector (ent, maxs);
|
emaxs = SVvector (ent, maxs);
|
||||||
for (j = 0; j < 3; j++)
|
for (j = 0; j < 3; j++)
|
||||||
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] + emaxs[j]);
|
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] - emaxs[j]);
|
||||||
if (DotProduct (eorg, eorg) > rad)
|
if (DotProduct (eorg, eorg) > rad)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -1366,7 +1366,8 @@ PF_logfrag (progs_t *pr)
|
||||||
int u1, u2;
|
int u1, u2;
|
||||||
|
|
||||||
type1[1] = type2[1] = 0;
|
type1[1] = type2[1] = 0;
|
||||||
if (e1 < 1 || e1 > MAX_CLIENTS) {
|
if (e1 < 1 || e1 > MAX_CLIENTS ||
|
||||||
|
svs.clients[e1 - 1].state == cs_server) {
|
||||||
type1[0] = 'e';
|
type1[0] = 'e';
|
||||||
u1 = e1;
|
u1 = e1;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1374,7 +1375,8 @@ PF_logfrag (progs_t *pr)
|
||||||
u1 = svs.clients[e1 - 1].userid;
|
u1 = svs.clients[e1 - 1].userid;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e2 < 1 || e2 > MAX_CLIENTS) {
|
if (e2 < 1 || e2 > MAX_CLIENTS ||
|
||||||
|
svs.clients[e1 - 1].state == cs_server) {
|
||||||
type2[0] = 'e';
|
type2[0] = 'e';
|
||||||
u2 = e2;
|
u2 = e2;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue