]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Vehicles: remove simple registration
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 1 Oct 2015 08:43:40 +0000 (18:43 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 1 Oct 2015 08:43:40 +0000 (18:43 +1000)
qcsrc/common/vehicles/all.qh

index 14c84f3a806b752b7e0e4b096e8ad579df622b3c..351c267a2a124a7c69b31042e0ff5bf4ddde05d0 100644 (file)
@@ -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)