version 1.84 | | version 1.85 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.84 2004/12/25 18:09:29 ryo_saeba Exp $"; | | * "$Id: main.c,v 1.85 2004/12/29 01:08:49 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (exit_ob->msg) set_random_map_variable(&rp,exit_ob->msg); | | if (exit_ob->msg) set_random_map_variable(&rp,exit_ob->msg); |
rp.origin_x = exit_ob->x; | | rp.origin_x = exit_ob->x; |
rp.origin_y = exit_ob->y; | | rp.origin_y = exit_ob->y; |
rp.generate_treasure_now = 1; | | |
strcpy(rp.origin_map, pl->map->path); | | strcpy(rp.origin_map, pl->map->path); |
| | |
/* If we have a final_map, use it as a base name to give some clue | | /* If we have a final_map, use it as a base name to give some clue |
| | |
} | | } |
| | |
if (op->speed_left > 0) { | | if (op->speed_left > 0) { |
| | /* I've seen occasional crashes in move_symptom() with it |
| | * crashing because op is removed - add some debugging to |
| | * track if it is removed at this point. |
| | */ |
| | if (QUERY_FLAG(op, FLAG_REMOVED)) { |
| | LOG(llevDebug,"process_events: calling process_object with rmeoved object %s\n", |
| | op->name?op->name:"null"); |
| | } |
--op->speed_left; | | --op->speed_left; |
process_object (op); | | process_object (op); |
if (was_destroyed (op, tag)) | | if (was_destroyed (op, tag)) |