mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-22 03:21:45 +01:00
Removal of outdated char_file_u warnings.
Adding of the appropropriate structs to the plrtoascii utility. Incoorporation of changes from old circlemud CVS snapshot this also gives more info on SYSERRors. cleanup of zmalloc language (shit->tmp) PRF_ROOMFLAGS has been renamed to PRF_SHOWVNUMS for clarity. "Deaf" has been changed to "No_shout" in preference_bits, for clarity. Addition of hindex (help index) command. who command added argument -g and -l to check who are grouped (and leaders) toggle has been expanded, and the commands nohassle, holylight, color, buildwalk, syslog and roomflags were moved to toggles. renaming of some vars in dg files (xxx -> dg_xxx) for clarity. set <player> password can now be used by other people than the first implementor - id check removed. fix of a couple of minor bugs: - crash bug related to freeing a pointer twice - ascii pfiles bug. - host was not updated correctly after switch to ascii pfiles. Todo: make "who #-#", "who #-" and "who -#" all work as "who -l #-#" did before Remove redundant commands which are now toggles. Make script variables save to pfile instead of its own file.
This commit is contained in:
@@ -79,12 +79,13 @@ SPECIAL(gen_board);
|
||||
int find_slot(void);
|
||||
int find_board(struct char_data *ch);
|
||||
void init_boards(void);
|
||||
|
||||
char *msg_storage[INDEX_SIZE];
|
||||
int msg_storage_taken[INDEX_SIZE];
|
||||
int num_of_msgs[NUM_OF_BOARDS];
|
||||
int ACMD_READ, ACMD_LOOK, ACMD_EXAMINE, ACMD_WRITE, ACMD_REMOVE;
|
||||
struct board_msginfo msg_index[NUM_OF_BOARDS][MAX_BOARD_MESSAGES];
|
||||
void Board_reset_board(int board_type);
|
||||
void Board_clear_board(int board_type);
|
||||
|
||||
|
||||
int find_slot(void)
|
||||
@@ -533,6 +534,8 @@ void Board_clear_board(int board_type)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_BOARD_MESSAGES; i++) {
|
||||
if (MSG_SLOTNUM(board_type, i) == -1)
|
||||
continue; /* don't try to free non-existant slots */
|
||||
if (MSG_HEADING(board_type, i))
|
||||
free(MSG_HEADING(board_type, i));
|
||||
if (msg_storage[MSG_SLOTNUM(board_type, i)])
|
||||
|
||||
Reference in New Issue
Block a user