From: Mario Date: Sat, 26 Mar 2016 17:50:14 +0000 (+1000) Subject: Bring back the precache hook (abused by mods) X-Git-Tag: xonotic-v0.8.2~1002 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=834b61b56b636affe694af0c454982867c5797bd;p=xonotic%2Fxonotic-data.pk3dir.git Bring back the precache hook (abused by mods) --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index ccda73209..35b6c677f 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -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);