equal
deleted
inserted
replaced
42 /** |
42 /** |
43 * |
43 * |
44 * Update the coordinates of all signs |
44 * Update the coordinates of all signs |
45 * |
45 * |
46 */ |
46 */ |
47 void UpdateAllSignVirtCoords(void) |
47 void UpdateAllSignVirtCoords() |
48 { |
48 { |
49 Sign *si; |
49 Sign *si; |
50 |
50 |
51 FOR_ALL_SIGNS(si) UpdateSignVirtCoords(si); |
51 FOR_ALL_SIGNS(si) UpdateSignVirtCoords(si); |
52 |
52 |
71 * |
71 * |
72 * Allocates a new sign |
72 * Allocates a new sign |
73 * |
73 * |
74 * @return The pointer to the new sign, or NULL if there is no more free space |
74 * @return The pointer to the new sign, or NULL if there is no more free space |
75 */ |
75 */ |
76 static Sign *AllocateSign(void) |
76 static Sign *AllocateSign() |
77 { |
77 { |
78 Sign *si; |
78 Sign *si; |
79 |
79 |
80 /* We don't use FOR_ALL here, because FOR_ALL skips invalid items. |
80 /* We don't use FOR_ALL here, because FOR_ALL skips invalid items. |
81 * TODO - This is just a temporary stage, this will be removed. */ |
81 * TODO - This is just a temporary stage, this will be removed. */ |
217 /** |
217 /** |
218 * |
218 * |
219 * Initialize the signs |
219 * Initialize the signs |
220 * |
220 * |
221 */ |
221 */ |
222 void InitializeSigns(void) |
222 void InitializeSigns() |
223 { |
223 { |
224 CleanPool(&_Sign_pool); |
224 CleanPool(&_Sign_pool); |
225 AddBlockToPool(&_Sign_pool); |
225 AddBlockToPool(&_Sign_pool); |
226 } |
226 } |
227 |
227 |
239 /** |
239 /** |
240 * |
240 * |
241 * Save all signs |
241 * Save all signs |
242 * |
242 * |
243 */ |
243 */ |
244 static void Save_SIGN(void) |
244 static void Save_SIGN() |
245 { |
245 { |
246 Sign *si; |
246 Sign *si; |
247 |
247 |
248 FOR_ALL_SIGNS(si) { |
248 FOR_ALL_SIGNS(si) { |
249 SlSetArrayIndex(si->index); |
249 SlSetArrayIndex(si->index); |
254 /** |
254 /** |
255 * |
255 * |
256 * Load all signs |
256 * Load all signs |
257 * |
257 * |
258 */ |
258 */ |
259 static void Load_SIGN(void) |
259 static void Load_SIGN() |
260 { |
260 { |
261 int index; |
261 int index; |
262 while ((index = SlIterateArray()) != -1) { |
262 while ((index = SlIterateArray()) != -1) { |
263 Sign *si; |
263 Sign *si; |
264 |
264 |