From: Severin Meyer Date: Tue, 21 Jul 2015 17:19:48 +0000 (+0200) Subject: Bugfix: Properly initialize vehicle_energy, otherwise the old value is carried over... X-Git-Tag: xonotic-v0.8.1~31^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dfc47dee78d94003fc072e4dfc664a1ba865a7ef;p=xonotic%2Fxonotic-data.pk3dir.git Bugfix: Properly initialize vehicle_energy, otherwise the old value is carried over to the spider --- diff --git a/qcsrc/server/vehicles/vehicle.qc b/qcsrc/server/vehicles/vehicle.qc index 2622b523f..e6a0f9c0e 100644 --- a/qcsrc/server/vehicles/vehicle.qc +++ b/qcsrc/server/vehicles/vehicle.qc @@ -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;