version 1.85 | | version 1.86 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.85 2004/12/29 01:08:49 mwedel Exp $"; | | * "$Id: main.c,v 1.86 2005/01/12 08:04:00 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
if (op->speed_left > 0) { | | if (op->speed_left > 0) { |
| | #if 0 |
/* I've seen occasional crashes in move_symptom() with it | | /* I've seen occasional crashes in move_symptom() with it |
* crashing because op is removed - add some debugging to | | * crashing because op is removed - add some debugging to |
* track if it is removed at this point. | | * track if it is removed at this point. |
| | * This unfortunately is a bit too verbose it seems - not sure |
| | * why - I think what happens is a map is freed or something and |
| | * some objects get 'lost' - removed never to be reclaimed. |
| | * removed objects generally shouldn't exist. |
*/ | | */ |
if (QUERY_FLAG(op, FLAG_REMOVED)) { | | if (QUERY_FLAG(op, FLAG_REMOVED)) { |
LOG(llevDebug,"process_events: calling process_object with rmeoved object %s\n", | | LOG(llevDebug,"process_events: calling process_object with rmeoved object %s\n", |
op->name?op->name:"null"); | | op->name?op->name:"null"); |
} | | } |
| | #endif |
--op->speed_left; | | --op->speed_left; |
process_object (op); | | process_object (op); |
if (was_destroyed (op, tag)) | | if (was_destroyed (op, tag)) |