]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure minigames can't invite an invalid client
authorMario <mario@smbclan.net>
Fri, 13 Jan 2017 19:40:14 +0000 (05:40 +1000)
committerMario <mario@smbclan.net>
Fri, 13 Jan 2017 19:40:14 +0000 (05:40 +1000)
qcsrc/common/minigames/sv_minigames.qc

index 5f1d1280b9f5a35dd85e2e4d99b6127767ee93c2..033a524fb3cf896b7c26e928a3634cb75637b625 100644 (file)
@@ -264,7 +264,7 @@ string invite_minigame(entity inviter, entity player)
 {
        if ( !inviter || !inviter.active_minigame )
                return "Invalid minigame";
-       if ( !VerifyClientEntity(player, true, false) )
+       if ( VerifyClientEntity(player, true, false) <= 0 )
                return "Invalid player";
        if ( inviter == player )
                return "You can't invite yourself";