mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-22 00:46:09 +01:00
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:
parent
5e5ad41afc
commit
f5ce466ea2
6 changed files with 1780 additions and 1707 deletions
8
src/db.h
8
src/db.h
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue