Made do_toggle appreciate abbreviations, and made sure a toggle is done automatically on

such options (on/off) which can handle this.

Cleanup of house.c and objsave.c - now, when loading objects from a rentfile (either
house- or crashfile), the items are loaded into a temporary list of type obj_save_data.
This stores location data for the autoequip function, and makes it a lot easier to
handle listrent. Another bonus us that one only has to change load code in one spot.
(this spot is called objsave_parse_objects(), and simply takes a FILE pointer as argument)

Added "hcontrol show [room]" option to show items saved to a specific house file.
(used the old House_listrent() code)

Welcor
This commit is contained in:
Rumble 2007-01-17 01:41:47 +00:00
parent 5e5ad41afc
commit f5ce466ea2
6 changed files with 1780 additions and 1707 deletions

View file

@ -266,6 +266,14 @@ struct ban_list_element {
struct ban_list_element *next;
};
/* for the "buffered" rent and house object loading */
struct obj_save_data_t {
struct obj_data *obj;
int locate;
struct obj_save_data_t *next;
};
typedef struct obj_save_data_t obj_save_data;
/* global buffering system */