]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/sv_vehicles.qc
Reset colors AFTER fully spawning the vehicle, so components aren't skipped
[xonotic/xonotic-data.pk3dir.git] / 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);
 }