diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-11 17:38:55 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-11 17:38:55 +0200 |
commit | f802db8cbf123d07c8a373b0cfc4188de34f386e (patch) | |
tree | 6525525c9ca95ec2a109d82785ac406c7e4c044a /src/init2.c | |
parent | 5a310053e1ed6331155e4c4a3a645291c0a95650 (diff) |
Lua: Gods: Move Theme god definitions to C
Diffstat (limited to 'src/init2.c')
-rw-r--r-- | src/init2.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/init2.c b/src/init2.c index 1f6e66e6..71e7bc2b 100644 --- a/src/init2.c +++ b/src/init2.c @@ -1959,13 +1959,6 @@ static errr init_misc(void) /* Hack -- No messages yet */ message__tail = MESSAGE_BUF; - /* Prepare gods */ - deity_info = NULL; - max_gods = MAX_GODS_INIT; - reinit_gods(max_gods); - - C_COPY(deity_info, deity_info_init, MAX_GODS_INIT, deity_type); - /* Prepare schools */ max_spells = 0; max_schools = 0; @@ -2066,25 +2059,6 @@ static errr init_wilderness(void) return 0; } -void reinit_gods(s16b new_size) -{ - deity_type *new_deity; - - C_MAKE(new_deity, new_size, deity_type); - - /* Reallocate the extra memory */ - if (deity_info) - { - C_COPY(new_deity, deity_info, max_gods, deity_type); - - C_FREE(deity_info, max_gods, deity_type); - } - - deity_info = new_deity; - - max_gods = new_size; -} - void init_spells(s16b new_size) { /* allocate the extra memory */ |