diff options
author | shennetsind <ind@henn.et> | 2013-11-06 21:10:52 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-06 21:10:52 -0200 |
commit | aaf34515fa9d32fae10c71b5b3f615857fd7e55e (patch) | |
tree | bec3964580ead4ed1d45f7bf51b418753004f16b /src/map/guild.c | |
parent | eaf04b9a2f0b399027df251c5d19d58d74e24e6a (diff) | |
parent | 87d7348396af97428638723ae49ca2ff166e4acd (diff) | |
download | hercules-aaf34515fa9d32fae10c71b5b3f615857fd7e55e.tar.gz hercules-aaf34515fa9d32fae10c71b5b3f615857fd7e55e.tar.bz2 hercules-aaf34515fa9d32fae10c71b5b3f615857fd7e55e.tar.xz hercules-aaf34515fa9d32fae10c71b5b3f615857fd7e55e.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/guild.c')
-rw-r--r-- | src/map/guild.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index 4dcdb6c46..fcdcddab2 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -2172,12 +2172,15 @@ void guild_flags_clear(void) { guild->flags_count = 0; } -void do_init_guild(void) { - guild->db = idb_alloc(DB_OPT_RELEASE_DATA); - guild->castle_db = idb_alloc(DB_OPT_BASE); - guild->expcache_db = idb_alloc(DB_OPT_BASE); - guild->infoevent_db = idb_alloc(DB_OPT_BASE); - guild->expcache_ers = ers_new(sizeof(struct guild_expcache),"guild.c::expcache_ers",ERS_OPT_NONE); +void do_init_guild(bool minimal) { + if (minimal) + return; + + guild->db = idb_alloc(DB_OPT_RELEASE_DATA); + guild->castle_db = idb_alloc(DB_OPT_BASE); + guild->expcache_db = idb_alloc(DB_OPT_BASE); + guild->infoevent_db = idb_alloc(DB_OPT_BASE); + guild->expcache_ers = ers_new(sizeof(struct guild_expcache),"guild.c::expcache_ers",ERS_OPT_NONE); sv->readdb(map->db_path, "castle_db.txt", ',', 4, 5, -1, guild->read_castledb); |