]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix serious bug when the map is reset (ready-restart) and a player is on a vehicle...
authorterencehill <piuntn@gmail.com>
Fri, 21 Jun 2013 15:29:26 +0000 (17:29 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 21 Jun 2013 15:29:26 +0000 (17:29 +0200)
qcsrc/server/cl_client.qc

index c687c4502c33ae7c7ec9c8c69fc95559f6d2a788..11c42f2ce430aec4b7e75acb98de8f955d937eab 100644 (file)
@@ -394,6 +394,9 @@ void PutClientInServer (void)
 
                RemoveGrapplingHook(self); // Wazat's Grappling Hook
 
+               if(self.vehicle)
+                       vehicles_exit(VHEF_RELESE);
+
                self.classname = "player";
                self.wasplayer = TRUE;
                self.iscreature = TRUE;