version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.9 2000/06/28 04:53:58 cvs Exp $"; | | * "$Id: c_object.c,v 1.10 2000/08/07 05:16:34 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 |
| | |
} | | } |
if (!strcasecmp(cp,query_name(op))) retval=20; | | if (!strcasecmp(cp,query_name(op))) retval=20; |
else if (!strcasecmp(cp,query_short_name(op))) retval=18; | | else if (!strcasecmp(cp,query_short_name(op))) retval=18; |
else if (!strcasecmp(cp,query_base_name(op))) retval=16; | | else if (!strcasecmp(cp,query_base_name(op,0))) retval=16; |
else if (!strncasecmp(cp,query_base_name(op), | | else if (!strcasecmp(cp,query_base_name(op,1))) retval=16; |
MIN(strlen(cp),strlen(query_base_name(op))))) retval=14; | | else if (!strncasecmp(cp,query_base_name(op,0), |
| | MIN(strlen(cp),strlen(query_base_name(op,0))))) retval=14; |
| | else if (!strncasecmp(cp,query_base_name(op,1), |
| | MIN(strlen(cp),strlen(query_base_name(op,1))))) retval=14; |
if (retval) { | | if (retval) { |
pl->contr->count=count; | | pl->contr->count=count; |
return retval; | | return retval; |