dropx - take dropped item out of inventory; called in several places - may produce output (eg ship_object() and dropy() -> sellobj() both produce output) */
| 783 | called in several places - may produce output |
| 784 | (eg ship_object() and dropy() -> sellobj() both produce output) */ |
| 785 | void |
| 786 | dropx(struct obj *obj) |
| 787 | { |
| 788 | freeinv(obj); |
| 789 | if (!u.uswallow) { |
| 790 | if (ship_object(obj, u.ux, u.uy, FALSE)) |
| 791 | return; |
| 792 | if (IS_ALTAR(levl[u.ux][u.uy].typ)) |
| 793 | doaltarobj(obj); /* set bknown */ |
| 794 | } |
| 795 | dropy(obj); |
| 796 | } |
| 797 | |
| 798 | /* dropy - put dropped object at destination; called from lots of places */ |
| 799 | void |
no test coverage detected