Merge remote-tracking branch 'eressea/master'

This commit is contained in:
Enno Rehling 2014-12-13 23:40:37 +01:00
commit 4ac7258f96
4 changed files with 8 additions and 9 deletions

View File

@ -65,7 +65,7 @@ void game_init(void)
#if ARENA_MODULE #if ARENA_MODULE
register_arena(); register_arena();
#endif #endif
register_wormholes(); wormholes_register();
register_itemtypes(); register_itemtypes();
#ifdef USE_LIBXML2 #ifdef USE_LIBXML2

View File

@ -4481,7 +4481,7 @@ void processorders(void)
/* must happen AFTER age, because that would destroy them right away */ /* must happen AFTER age, because that would destroy them right away */
if (get_param_int(global.parameters, "modules.wormholes", 0)) { if (get_param_int(global.parameters, "modules.wormholes", 0)) {
create_wormholes(); wormholes_update();
} }
/* immer ausführen, wenn neue Sprüche dazugekommen sind, oder sich /* immer ausführen, wenn neue Sprüche dazugekommen sind, oder sich

View File

@ -103,8 +103,7 @@ static int wormhole_age(struct attrib *a)
return AT_AGE_KEEP; return AT_AGE_KEEP;
} }
static void static void wormhole_write(const struct attrib *a, const void *owner, struct storage *store)
wormhole_write(const struct attrib *a, const void *owner, struct storage *store)
{ {
wormhole_data *data = (wormhole_data *)a->data.v; wormhole_data *data = (wormhole_data *)a->data.v;
write_building_reference(data->entry, store); write_building_reference(data->entry, store);
@ -175,7 +174,7 @@ make_wormhole(const building_type * bt_wormhole, region * r1, region * r2)
#define WORMHOLE_CHANCE 10000 #define WORMHOLE_CHANCE 10000
void select_wormhole_regions(quicklist **rlistp, int *countp) { static void select_wormhole_regions(quicklist **rlistp, int *countp) {
quicklist *rlist = 0; quicklist *rlist = 0;
region *r = regions; region *r = regions;
int count = 0; int count = 0;
@ -217,7 +216,7 @@ void make_wormholes(region **match, int count, const building_type *bt_wormhole)
} }
} }
void create_wormholes(void) void wormholes_update(void)
{ {
const building_type *bt_wormhole = bt_find("wormhole"); const building_type *bt_wormhole = bt_find("wormhole");
quicklist *rlist = 0; quicklist *rlist = 0;
@ -239,7 +238,7 @@ void create_wormholes(void)
free(match); free(match);
} }
void register_wormholes(void) void wormholes_register(void)
{ {
at_register(&at_wormhole); at_register(&at_wormhole);
} }

View File

@ -22,8 +22,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern "C" { extern "C" {
#endif #endif
extern void create_wormholes(void); extern void wormholes_update(void);
extern void register_wormholes(void); extern void wormholes_register(void);
#ifdef __cplusplus #ifdef __cplusplus
} }