mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-15 12:28:06 +01:00
Added protocols,lists and events, and fixed some bugs... refer to changelog.
This commit is contained in:
parent
6dadf24c51
commit
dd280c1b58
22 changed files with 419 additions and 89 deletions
10
src/db.c
10
src/db.c
|
|
@ -37,6 +37,7 @@
|
|||
#include "shop.h"
|
||||
#include "quest.h"
|
||||
#include "ibt.h"
|
||||
#include "mud_event.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* declarations of most of the 'global' variables */
|
||||
|
|
@ -628,6 +629,9 @@ void destroy_db(void)
|
|||
/* Events */
|
||||
event_free_all();
|
||||
|
||||
/* Lists */
|
||||
free_list(world_events);
|
||||
|
||||
}
|
||||
|
||||
/* body of the booting system */
|
||||
|
|
@ -639,6 +643,12 @@ void boot_db(void)
|
|||
|
||||
log("Resetting the game time:");
|
||||
reset_time();
|
||||
|
||||
log("Initialize Global Lists");
|
||||
global_lists = create_list();
|
||||
|
||||
log("Initializing Events");
|
||||
init_events();
|
||||
|
||||
log("Reading news, credits, help, ihelp, bground, info & motds.");
|
||||
file_to_string_alloc(NEWS_FILE, &news);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue