]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bring back the precache hook (abused by mods)
authorMario <mario@smbclan.net>
Sat, 26 Mar 2016 17:50:14 +0000 (03:50 +1000)
committerMario <mario@smbclan.net>
Sat, 26 Mar 2016 17:50:14 +0000 (03:50 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index ccda73209095ba3158535e6527623b97933b4aad..35b6c677f957de6fbfe84ee53ad28a78ce4aa3e7 100644 (file)
@@ -1165,6 +1165,9 @@ bool vehicle_initialize(entity this, Vehicle info, bool nodrop)
        if(!info.vehicleid)
                return false;
 
+       if(!this.tur_head)
+               info.vr_precache(info);
+
        if(this.targetname && this.targetname != "")
        {
                this.vehicle_controller = find(world, target, this.targetname);