Fix kill/teamchange/spectate not working in vehicles
authorJakob MG <jakob_mg@hotmail.com>
Thu, 23 Aug 2012 16:20:35 +0000 (18:20 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Thu, 23 Aug 2012 16:20:35 +0000 (18:20 +0200)
qcsrc/server/cl_client.qc

index ec8edad65bda8046736c6626f6eb05532985b6b7..7c3308041e670a8270eca36b9a660a640746a6e0 100644 (file)
@@ -415,7 +415,7 @@ void PutObserverInServer (void)
        }
 
        if(self.vehicle)
-           vehicles_exit(VHEF_RELESE);
+               vehicles_exit(VHEF_RELESE);         
 
        if(self.flagcarried)
                DropFlag(self.flagcarried, world, world);
@@ -1118,7 +1118,7 @@ void KillIndicator_Think()
                return;
        }
 
-       if (self.owner.alpha < 0)
+       if (self.owner.alpha < 0 && !self.owner.vehicle)
        {
                self.owner.killindicator = world;
                remove(self);