1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: init.C,v 1.5 2006/09/04 11:07:59 root Exp $"; |
3 | * "$Id: init.C,v 1.6 2006/09/07 09:37:11 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
266 | * Sets up and initialises the linked list of free and used objects. |
266 | * Sets up and initialises the linked list of free and used objects. |
267 | * Allocates a certain chunk of objects and puts them on the free list. |
267 | * Allocates a certain chunk of objects and puts them on the free list. |
268 | * Called by init_library(); |
268 | * Called by init_library(); |
269 | */ |
269 | */ |
270 | |
270 | |
|
|
271 | void |
271 | void init_objects(void) { |
272 | init_objects(void) |
272 | int i; |
273 | { |
273 | /* Initialize all objects: */ |
274 | /* Initialize all objects: */ |
274 | objects=NULL; |
275 | objects = NULL; |
275 | active_objects = NULL; |
276 | active_objects = NULL; |
276 | } |
277 | } |
277 | |
278 | |
278 | /* |
279 | /* |
279 | * Initialises global variables which can be changed by options. |
280 | * Initialises global variables which can be changed by options. |