]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset colors AFTER fully spawning the vehicle, so components aren't skipped
authorMario <mario@smbclan.net>
Sat, 17 Jun 2017 23:14:56 +0000 (09:14 +1000)
committerMario <mario@smbclan.net>
Sat, 17 Jun 2017 23:14:56 +0000 (09:14 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index 1848b63b7a0692ebbe01e323c3a50c2d044f6a02..fb9e89131bcd26034bd1650c47b846666ba5c679 100644 (file)
@@ -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);
 }