reset last-picked-up flags */
| 613 | |
| 614 | /* reset last-picked-up flags */ |
| 615 | void |
| 616 | reset_justpicked(struct obj *olist) |
| 617 | { |
| 618 | struct obj *otmp; |
| 619 | /* |
| 620 | * TODO? Possible enhancement: don't reset if hero is still at same |
| 621 | * spot where most recent pickup took place. Not resetting will be |
| 622 | * the correct behavior for autopickup immediately followed by manual |
| 623 | * pickup. It would probably be correct for either or both pickups |
| 624 | * followed by manual pickup of a newly arrived missile after some |
| 625 | * time has elapsed. Things becomes murkier for other activity. |
| 626 | * Taking anything out of a container ought to be treated as if |
| 627 | * having moved to another spot. |
| 628 | */ |
| 629 | |
| 630 | for (otmp = olist; otmp; otmp = otmp->nobj) |
| 631 | otmp->pickup_prev = 0; |
| 632 | } |
| 633 | |
| 634 | int |
| 635 | count_justpicked(struct obj *olist) |
no outgoing calls
no test coverage detected