version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_arch_c = | | * static char *rcsid_arch_c = |
* "$Id: arch.c,v 1.2 1999/07/13 06:02:41 cvs Exp $"; | | * "$Id: arch.c,v 1.3 2000/04/27 07:04:18 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | Copyright (C) 2000 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 frankj@ifi.uio.no. | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
| | |
#include <global.h> | | #include <global.h> |
| | |
continue; | | continue; |
if((argument=strchr(buf,' '))!=NULL) { | | if((argument=strchr(buf,' '))!=NULL) { |
*argument='\0',argument++; | | *argument='\0',argument++; |
if((cp=strchr(argument,'\n'))!=NULL) | | cp = argument + strlen(argument)-1; |
| | while (isspace(*cp)) { |
*cp='\0'; | | *cp='\0'; |
| | cp--; |
| | } |
} | | } |
if(!strcmp("Object",variable)) { | | if(!strcmp("Object",variable)) { |
if((at=find_archetype(argument))==NULL) | | if((at=find_archetype(argument))==NULL) |