… | |
… | |
1286 | if (op->env) |
1286 | if (op->env) |
1287 | { |
1287 | { |
1288 | LOG (llevError, "insert_ob_in_map called for object in an inventory (proceeding)"); |
1288 | LOG (llevError, "insert_ob_in_map called for object in an inventory (proceeding)"); |
1289 | op->remove (); |
1289 | op->remove (); |
1290 | } |
1290 | } |
|
|
1291 | |
|
|
1292 | if (op->face && !face_info (op->face))//D TODO: remove soon |
|
|
1293 | {//D |
|
|
1294 | LOG (llevError | logBacktrace, "op->face out of bounds: %s", op->debug_desc ());//D |
|
|
1295 | op->face = 1;//D |
|
|
1296 | }//D |
1291 | |
1297 | |
1292 | /* Ideally, the caller figures this out. However, it complicates a lot |
1298 | /* Ideally, the caller figures this out. However, it complicates a lot |
1293 | * of areas of callers (eg, anything that uses find_free_spot would now |
1299 | * of areas of callers (eg, anything that uses find_free_spot would now |
1294 | * need extra work |
1300 | * need extra work |
1295 | */ |
1301 | */ |