From: Mario Date: Fri, 5 Dec 2014 11:15:50 +0000 (+1100) Subject: Add a few quick checks to ensure dead/frozen players don't enter vehicles X-Git-Tag: xonotic-v0.8.0~127 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ffc8306348654f791a14dfb6ffe918083067244c;p=xonotic%2Fxonotic-data.pk3dir.git Add a few quick checks to ensure dead/frozen players don't enter vehicles --- diff --git a/qcsrc/server/vehicles/vehicles.qc b/qcsrc/server/vehicles/vehicles.qc index 2ee34b928..9042bd4e8 100644 --- a/qcsrc/server/vehicles/vehicles.qc +++ b/qcsrc/server/vehicles/vehicles.qc @@ -608,6 +608,12 @@ void vehicles_enter() if(self.phase > time) return; + if(other.frozen) + return; + if(other.vehicle) + return; + if(other.deadflag != DEAD_NO) + return; if(teamplay) if(self.team)