more thrown object cleanup

Handle thrown or kicked object that's in transit for hangup save and
panic save in addition to normal end of game.  Affects ball and chain
placement too, if they've been temporarily taken off the map.
This commit is contained in:
PatR
2022-02-25 07:10:30 -08:00
parent 2012254c39
commit ca97f4f3dd
3 changed files with 11 additions and 5 deletions

View File

@@ -28,7 +28,6 @@ static void done_hangup(int);
static void disclose(int, boolean);
static void get_valuables(struct obj *);
static void sort_valuables(struct valuable_data *, int);
static void done_object_cleanup(void);
static void artifact_score(struct obj *, boolean, winid);
static void really_done(int) NORETURN;
static void savelife(int);
@@ -1039,7 +1038,7 @@ odds_and_ends(struct obj *list, int what)
#endif
/* deal with some objects which may be in an abnormal state at end of game */
static void
void
done_object_cleanup(void)
{
int ox, oy;