From: TimePath Date: Thu, 1 Oct 2015 08:43:40 +0000 (+1000) Subject: Vehicles: remove simple registration X-Git-Tag: xonotic-v0.8.2~1874^2~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c77002f65230f68cc19c1816c6fd3b2b7b4c63b;p=xonotic%2Fxonotic-data.pk3dir.git Vehicles: remove simple registration --- diff --git a/qcsrc/common/vehicles/all.qh b/qcsrc/common/vehicles/all.qh index 14c84f3a8..351c267a2 100644 --- a/qcsrc/common/vehicles/all.qh +++ b/qcsrc/common/vehicles/all.qh @@ -12,22 +12,6 @@ const int VEH_FIRST = 1; #define VEH_LAST (VEH_FIRST + VEH_COUNT - 1) /** If you register a new vehicle, make sure to add it to all.inc */ #define REGISTER_VEHICLE(id, inst) REGISTER(RegisterVehicles, VEH, vehicle_info, VEH_COUNT, id, vehicleid, inst) -#define REGISTER_VEHICLE_SIMPLE(id, vehicleflags, min_s, max_s, modelname, headmodelname, hudmodelname, headtag, hudtag, viewtag, shortname, vname) \ - REGISTER_VEHICLE(id, NEW(Vehicle)) { \ - this.netname = shortname; \ - this.vehicle_name = vname; \ - this.mdl = modelname; \ - this.spawnflags = vehicleflags; \ - this.mins = min_s; \ - this.maxs = max_s; \ - this.model = modelname; \ - this.head_model = headmodelname; \ - this.hud_model = hudmodelname; \ - this.tag_head = headtag; \ - this.tag_hud = hudtag; \ - this.tag_view = viewtag; \ - } \ - REGISTER_INIT(VEH, id) REGISTER_REGISTRY(RegisterVehicles) #if defined(SVQC)