]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/all.qc
Fix auxiliary crosshairs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / all.qc
index d90e0696be77010bcc862af5b56f0c1b2373cc6e..f0316ab1fac7f2da65c7269dcd43b56b345ff060 100644 (file)
@@ -46,15 +46,11 @@ STATIC_INIT(vehicles_common_initialize)
 }
 #endif
 
-entity get_vehicleinfo(float id)
+entity get_vehicleinfo(int id)
 {
-       entity m;
-       if(id < VEH_FIRST || id > VEH_LAST)
-               return VEH_NULL;
-       m = vehicle_info[id - 1];
-       if(m)
-               return m;
-       return VEH_NULL;
+       if (id < VEH_FIRST || id > VEH_LAST) return VEH_NULL;
+       entity m = vehicle_info[id];
+       return m ? m : VEH_NULL;
 }
 
 #endif