version 1.70 | | version 1.71 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.70 2005/09/25 09:47:23 ryo_saeba Exp $"; | | * "$Id: c_wiz.c,v 1.71 2005/10/14 01:01:22 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
return 1; | | return 1; |
} else { | | } else { |
| | player *pl; |
| | int playercount=0; |
/* Need to re-insert player if swap failed for some reason */ | | /* Need to re-insert player if swap failed for some reason */ |
if (tmp) { | | if (tmp) { |
insert_ob_in_map(op, m, NULL,0); | | insert_ob_in_map(op, m, NULL,0); |
free_object(dummy); | | free_object(dummy); |
} | | } |
new_draw_info(NDI_UNIQUE, 0,op,"Reset failed, couldn't swap map.\n"); | | new_draw_info(NDI_UNIQUE, 0,op, |
new_draw_info(NDI_UNIQUE, 0,op,"Probably another player is on the map\n"); | | "Reset failed, couldn't swap map, the following players are on it:"); |
| | for (pl=first_player; pl!=NULL; pl=pl->next) { |
| | if (pl->ob->map == m && pl->ob != op) { |
| | new_draw_info_format(NDI_UNIQUE, 0, op, "%s", pl->ob->name); |
| | playercount++; |
| | } |
| | } |
| | if (!playercount) new_draw_info(NDI_UNIQUE, 0, op, |
| | "hmm, I don't see any other players on this map, something else is the problem."); |
return 1; | | return 1; |
} | | } |
} | | } |