Add a few quick checks to ensure dead/frozen players don't enter vehicles
authorMario <zacjardine@y7mail.com>
Fri, 5 Dec 2014 11:15:50 +0000 (22:15 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 5 Dec 2014 11:15:50 +0000 (22:15 +1100)
qcsrc/server/vehicles/vehicles.qc

index 2ee34b9..9042bd4 100644 (file)
@@ -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)