signs.h
changeset 5247 c3eece01af11
parent 5216 d581e4db95b6
equal deleted inserted replaced
5246:29224c621fd6 5247:c3eece01af11
    16 	SignID       index;
    16 	SignID       index;
    17 } Sign;
    17 } Sign;
    18 
    18 
    19 DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
    19 DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
    20 
    20 
    21 static inline SignID GetSignArraySize(void)
    21 static inline SignID GetMaxSignIndex(void)
    22 {
    22 {
    23 	/* TODO - This isn't the real content of the function, but
    23 	/* TODO - This isn't the real content of the function, but
    24 	 *  with the new pool-system this will be replaced with one that
    24 	 *  with the new pool-system this will be replaced with one that
    25 	 *  _really_ returns the highest index + 1. Now it just returns
    25 	 *  _really_ returns the highest index. Now it just returns
    26 	 *  the next safe value we are sure about everything is below.
    26 	 *  the next safe value we are sure about everything is below.
    27 	 */
    27 	 */
       
    28 	return GetSignPoolSize() - 1;
       
    29 }
       
    30 
       
    31 static inline uint GetNumSigns(void)
       
    32 {
    28 	return GetSignPoolSize();
    33 	return GetSignPoolSize();
    29 }
    34 }
    30 
    35 
    31 /**
    36 /**
    32  * Check if a Sign really exists.
    37  * Check if a Sign really exists.