vehicle.h
changeset 4354 10f4ce894eb1
parent 4352 6703cd8d39e0
child 4384 7e0d3ed719d9
equal deleted inserted replaced
4353:1523114f43f0 4354:10f4ce894eb1
   357 static inline uint16 GetVehiclePoolSize(void)
   357 static inline uint16 GetVehiclePoolSize(void)
   358 {
   358 {
   359 	return _vehicle_pool.total_items;
   359 	return _vehicle_pool.total_items;
   360 }
   360 }
   361 
   361 
       
   362 static inline VehicleID GetVehicleArraySize(void)
       
   363 {
       
   364 	/* TODO - This isn't the real content of the function, but
       
   365 	 *  with the new pool-system this will be replaced with one that
       
   366 	 *  _really_ returns the highest index + 1. Now it just returns
       
   367 	 *  the next safe value we are sure about everything is below.
       
   368 	 */
       
   369 	return GetVehiclePoolSize();
       
   370 }
       
   371 
   362 /**
   372 /**
   363  * Check if a Vehicle really exists.
   373  * Check if a Vehicle really exists.
   364  */
   374  */
   365 static inline bool IsValidVehicle(const Vehicle *v)
   375 static inline bool IsValidVehicle(const Vehicle *v)
   366 {
   376 {