… | |
… | |
2344 | * Cf 0.91.3 - don't let WIZ's pick up anything - will likely cause |
2344 | * Cf 0.91.3 - don't let WIZ's pick up anything - will likely cause |
2345 | * core dumps if they do. |
2345 | * core dumps if they do. |
2346 | * |
2346 | * |
2347 | * Add a check so we can't pick up invisible objects (0.93.8) |
2347 | * Add a check so we can't pick up invisible objects (0.93.8) |
2348 | */ |
2348 | */ |
2349 | |
|
|
2350 | int |
2349 | int |
2351 | can_pick (const object *who, const object *item) |
2350 | can_pick (const object *who, const object *item) |
2352 | { |
2351 | { |
2353 | return /*QUERY_FLAG(who,FLAG_WIZ)|| */ |
2352 | return /*QUERY_FLAG(who,FLAG_WIZ)|| */ |
2354 | (item->weight > 0 && !QUERY_FLAG (item, FLAG_NO_PICK) && |
2353 | (item->weight > 0 && !QUERY_FLAG (item, FLAG_NO_PICK) && |