version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.11 2001/05/29 04:41:53 mwedel Exp $"; | | * "$Id: c_wiz.c,v 1.12 2001/07/14 04:11:18 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
prev=tmp; | | prev=tmp; |
} | | } |
if (QUERY_FLAG(head,FLAG_ALIVE)) | | if (QUERY_FLAG(head,FLAG_ALIVE)) |
insert_ob_in_map(head,op->map,op); | | insert_ob_in_map(head,op->map,op,0); |
else | | else |
head = insert_ob_in_ob(head,op); | | head = insert_ob_in_ob(head,op); |
if (at->clone.randomitems!=NULL) | | if (at->clone.randomitems!=NULL) |
| | |
clean_tmp_map(m); | | clean_tmp_map(m); |
if (m->tmpname) free(m->tmpname); | | if (m->tmpname) free(m->tmpname); |
m->tmpname = NULL; | | m->tmpname = NULL; |
m->reset_time = 0; | | /* setting this effectively causes an immediate reload */ |
| | m->reset_time = 1; |
new_draw_info(NDI_UNIQUE, 0,op,"OK."); | | new_draw_info(NDI_UNIQUE, 0,op,"OK."); |
if (tmp) { | | if (tmp) { |
enter_exit(tmp, dummy); | | enter_exit(tmp, dummy); |
| | |
} else { | | } else { |
/* 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); | | 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,"Reset failed, couldn't swap map.\n"); |
| | |
if (!op) | | if (!op) |
return 0; | | return 0; |
op->invisible+=100; | | op->invisible+=100; |
update_object(op); | | update_object(op,UP_OBJ_FACE); |
new_draw_info(NDI_UNIQUE, 0,op,"You turn invisible."); | | new_draw_info(NDI_UNIQUE, 0,op,"You turn invisible."); |
return 0; | | return 0; |
} | | } |