]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2ee34b928f0da2aa62493892162f9100a50c85a4..9042bd4e810be0b9382d845ee99dd49902a9bfda 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)