'obj' is being placed on the floor; if it can merge with something that is already there, combine them and discard obj as a separate object */
| 4363 | /* 'obj' is being placed on the floor; if it can merge with something that |
| 4364 | is already there, combine them and discard obj as a separate object */ |
| 4365 | void |
| 4366 | stackobj(struct obj *obj) |
| 4367 | { |
| 4368 | struct obj *otmp; |
| 4369 | |
| 4370 | for (otmp = svl.level.objects[obj->ox][obj->oy]; otmp; |
| 4371 | otmp = otmp->nexthere) |
| 4372 | if (otmp != obj && merged(&obj, &otmp)) |
| 4373 | break; |
| 4374 | return; |
| 4375 | } |
| 4376 | |
| 4377 | /* returns TRUE if obj & otmp can be merged; used in invent.c and mkobj.c */ |
| 4378 | boolean |
no test coverage detected