version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.5 2001/02/01 06:18:48 cvs Exp $"; | | * "$Id: player.c,v 1.6 2001/02/27 03:41:25 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 1994 Mark Wedel | | Copyright (C) 2001 Mark Wedel |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to master@rahul.net | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
| | |
#include <global.h> | | #include <global.h> |
| | |
/* | | /* |
* Returns a newly allocated and initialised and correctly | | * Returns a newly allocated and initialised and correctly |
* linked player structure. | | * linked player structure. |
| | * This no longer creates the ob structure within the player - |
| | * parent wasn't using it anyways. |
*/ | | */ |
| | |
player *get_player_ob() { | | player *get_player_ob() { |
| | |
| | |
new->use_pixmaps=0; | | new->use_pixmaps=0; |
new->color_pixmaps=0; | | new->color_pixmaps=0; |
new->ob = get_object(); | | new->ob = NULL; |
new->ob->type = PLAYER; | | |
new->ob->contr = new; | | |
new->ob->name = add_string("logon"); | | |
new->shoottype = range_none; | | new->shoottype = range_none; |
new->last_shoot = range_size; | | new->last_shoot = range_size; |
new->braced =0; | | new->braced =0; |