From: Mario Date: Sat, 17 Jun 2017 23:14:56 +0000 (+1000) Subject: Reset colors AFTER fully spawning the vehicle, so components aren't skipped X-Git-Tag: xonotic-v0.8.5~2729 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecde3255f388ab07ddfe919bb80cf0a54e4256b8;p=xonotic%2Fxonotic-data.pk3dir.git Reset colors AFTER fully spawning the vehicle, so components aren't skipped --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 1848b63b7..fb9e89131 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -1147,11 +1147,12 @@ void vehicles_spawn(entity this) } }); - vehicles_reset_colors(this); Vehicle info = Vehicles_from(this.vehicleid); info.vr_spawn(info, this); + vehicles_reset_colors(this); + CSQCMODEL_AUTOINIT(this); }