From ffc8306348654f791a14dfb6ffe918083067244c Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 5 Dec 2014 22:15:50 +1100 Subject: [PATCH] Add a few quick checks to ensure dead/frozen players don't enter vehicles --- qcsrc/server/vehicles/vehicles.qc | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2