]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bugfix: Properly initialize vehicle_energy, otherwise the old value is carried over...
authorSeverin Meyer <sev.ch@web.de>
Tue, 21 Jul 2015 17:19:48 +0000 (19:19 +0200)
committerSeverin Meyer <sev.ch@web.de>
Tue, 21 Jul 2015 17:19:48 +0000 (19:19 +0200)
qcsrc/server/vehicles/vehicle.qc

index 2622b523ffabfa81d96a2481b9be941a75700b87..e6a0f9c0e4887ef1e37971d7a142b33aa3ea9ab0 100644 (file)
@@ -645,6 +645,7 @@ void vehicles_enter()
     self.owner.vehicle_ammo2    = self.vehicle_ammo2;
     self.owner.vehicle_reload1  = self.vehicle_reload1;
     self.owner.vehicle_reload2  = self.vehicle_reload2;
+    self.owner.vehicle_energy   = self.vehicle_energy;
 
     // Cant do this, hides attached objects too.
     //self.exteriormodeltoclient = self.owner;