version 1.36 | | version 1.37 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.36 2003/09/13 05:02:09 mwedel Exp $"; | | * "$Id: c_wiz.c,v 1.37 2003/09/23 05:40:39 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
struct pl *pl; | | struct pl *pl; |
| | |
for(pl=first_player;pl!=NULL;pl=pl->next) | | for(pl=first_player;pl!=NULL;pl=pl->next) |
if((params==NULL || !strcmp(pl->ob->name,params)) && pl->ob!=op) | | if((params==NULL || !strcmp(pl->ob->name,params)) && pl->ob!=op) { |
{ | | |
object *op; | | object *op; |
| | int removed=0; |
| | |
op=pl->ob; | | op=pl->ob; |
| | if (!QUERY_FLAG(op, FLAG_REMOVED)) { |
remove_ob(op); | | remove_ob(op); |
| | removed=1; |
| | } |
op->direction=0; | | op->direction=0; |
new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, | | new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, |
"%s is kicked out of the game.",op->name); | | "%s is kicked out of the game.",op->name); |
strcpy(op->contr->killer,"left"); | | strcpy(op->contr->killer,"left"); |
check_score(op); /* Always check score */ | | check_score(op); /* Always check score */ |
| | if (!removed) { |
(void)save_player(op,0); | | (void)save_player(op,0); |
op->map->players--; | | op->map->players--; |
| | } |
#if MAP_MAXTIMEOUT | | #if MAP_MAXTIMEOUT |
op->map->timeout = MAP_TIMEOUT(op->map); | | op->map->timeout = MAP_TIMEOUT(op->map); |
#endif | | #endif |