signs.c
changeset 1093 4fdc46eaf423
parent 990 d2872f4948c1
child 1165 8fa7d3e235c6
equal deleted inserted replaced
1092:e3b4a131db7c 1093:4fdc46eaf423
    20 /**
    20 /**
    21  *
    21  *
    22  * Update the coordinates of all signs
    22  * Update the coordinates of all signs
    23  *
    23  *
    24  */
    24  */
    25 void UpdateAllSignVirtCoords()
    25 void UpdateAllSignVirtCoords(void)
    26 {
    26 {
    27 	SignStruct *ss;
    27 	SignStruct *ss;
    28 
    28 
    29 	FOR_ALL_SIGNS(ss)
    29 	FOR_ALL_SIGNS(ss)
    30 		if (ss->str != 0)
    30 		if (ss->str != 0)
    51  *
    51  *
    52  * Allocates a new sign
    52  * Allocates a new sign
    53  *
    53  *
    54  * @return The pointer to the new sign, or NULL if there is no more free space
    54  * @return The pointer to the new sign, or NULL if there is no more free space
    55  */
    55  */
    56 static SignStruct *AllocateSign()
    56 static SignStruct *AllocateSign(void)
    57 {
    57 {
    58 	SignStruct *s;
    58 	SignStruct *s;
    59 	FOR_ALL_SIGNS(s)
    59 	FOR_ALL_SIGNS(s)
    60 		if (s->str == 0)
    60 		if (s->str == 0)
    61 			return s;
    61 			return s;
   171 /**
   171 /**
   172  *
   172  *
   173  * Initialize the signs
   173  * Initialize the signs
   174  *
   174  *
   175  */
   175  */
   176 void InitializeSigns()
   176 void InitializeSigns(void)
   177 {
   177 {
   178 	SignStruct *s;
   178 	SignStruct *s;
   179 	int i;
   179 	int i;
   180 
   180 
   181 	memset(_sign_list, 0, sizeof(_sign_list[0]) * _sign_size);
   181 	memset(_sign_list, 0, sizeof(_sign_list[0]) * _sign_size);
   198 /**
   198 /**
   199  *
   199  *
   200  * Save all signs
   200  * Save all signs
   201  *
   201  *
   202  */
   202  */
   203 static void Save_SIGN()
   203 static void Save_SIGN(void)
   204 {
   204 {
   205 	SignStruct *s;
   205 	SignStruct *s;
   206 
   206 
   207 	FOR_ALL_SIGNS(s) {
   207 	FOR_ALL_SIGNS(s) {
   208 		/* Don't save empty signs */
   208 		/* Don't save empty signs */
   216 /**
   216 /**
   217  *
   217  *
   218  * Load all signs
   218  * Load all signs
   219  *
   219  *
   220  */
   220  */
   221 static void Load_SIGN()
   221 static void Load_SIGN(void)
   222 {
   222 {
   223 	int index;
   223 	int index;
   224 	while ((index = SlIterateArray()) != -1) {
   224 	while ((index = SlIterateArray()) != -1) {
   225 		SignStruct *s = GetSign(index);
   225 		SignStruct *s = GetSign(index);
   226 
   226