server: fix blocking of non-existent primary guns
I think driAn meant to use OR, as using AND leads to FALSE.
This commit is contained in:
committed by
aurhat
parent
5d7035a14b
commit
4f8f2737a4
@@ -2988,7 +2988,7 @@ void process(ENetPacket *packet, int sender, int chan)
|
||||
case SV_PRIMARYWEAP:
|
||||
{
|
||||
int nextprimary = getint(p);
|
||||
if(nextprimary<0 && nextprimary>=NUMGUNS) break;
|
||||
if (nextprimary < 0 || nextprimary >= NUMGUNS) break;
|
||||
cl->state.nextprimary = nextprimary;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user