mirror of
https://github.com/yquake2/ctf.git
synced 2025-05-10 18:40:37 +00:00
Fix (potential) problematic use cases of qboolean.
xatrix had only one potential problematic use case, putting an int into qboolean. It would have worked if qboolean is a bool, but better do it right. No functional change intended.
This commit is contained in:
parent
8878216828
commit
c7a4b27bf6
1 changed files with 2 additions and 2 deletions
|
@ -168,11 +168,11 @@ SV_FilterPacket(char *from)
|
|||
{
|
||||
if ((in & ipfilters[i].mask) == ipfilters[i].compare)
|
||||
{
|
||||
return (int)filterban->value;
|
||||
return (filterban->value != 0);
|
||||
}
|
||||
}
|
||||
|
||||
return (int)!filterban->value;
|
||||
return (filterban->value == 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue