]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/vehicles/vehicle.qc
Bugfix: Properly initialize vehicle_energy, otherwise the old value is carried over...
[xonotic/xonotic-data.pk3dir.git] / 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;