getobj callback for object to read */
| 312 | |
| 313 | /* getobj callback for object to read */ |
| 314 | staticfn int |
| 315 | read_ok(struct obj *obj) |
| 316 | { |
| 317 | if (!obj) |
| 318 | return GETOBJ_EXCLUDE; |
| 319 | |
| 320 | if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS) |
| 321 | return GETOBJ_SUGGEST; |
| 322 | |
| 323 | return GETOBJ_DOWNPLAY; |
| 324 | } |
| 325 | |
| 326 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 327 |
nothing calls this directly
no outgoing calls
no test coverage detected