From: Mario Date: Fri, 13 Jan 2017 19:40:14 +0000 (+1000) Subject: Make sure minigames can't invite an invalid client X-Git-Tag: xonotic-v0.8.2~291 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c39299852752bdee0aafca66d0bcc7ec2f720d8c;p=xonotic%2Fxonotic-data.pk3dir.git Make sure minigames can't invite an invalid client --- diff --git a/qcsrc/common/minigames/sv_minigames.qc b/qcsrc/common/minigames/sv_minigames.qc index 5f1d1280b..033a524fb 100644 --- a/qcsrc/common/minigames/sv_minigames.qc +++ b/qcsrc/common/minigames/sv_minigames.qc @@ -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";