X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_load.c;h=01fa9cc6da2a6796b11f2d5a9bf4e048b69e3112;hb=da1a0abc0c32b4283746949ba9a135a7d3c0b82c;hp=bbf5c91510c5a7d0b488b360f30b4479686b807f;hpb=6929408e937dca64da707a2d61f8cdf6ab857e93;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_load.c b/world_load.c index bbf5c91..01fa9cc 100644 --- a/world_load.c +++ b/world_load.c @@ -59,6 +59,7 @@ VG_STATIC void world_load_mdl( const char *path ) mdl_load_array( meta, &world->ent_skateshop, "ent_skateshop", heap ); mdl_load_array( meta, &world->ent_swspreview,"ent_swspreview", heap ); mdl_load_array( meta, &world->ent_ccmd, "ent_ccmd", heap ); + mdl_load_array( meta, &world->ent_challenge, "ent_challenge", heap ); mdl_array_ptr infos; mdl_load_array( meta, &infos, "ent_worldinfo", vg_mem.scratch ); @@ -83,8 +84,6 @@ VG_STATIC void world_load_mdl( const char *path ) world_gen_load_surfaces(); world_gen_routes_ent_init(); world_gen_entities_init(); - world->volume_bh = bh_create( heap, &bh_system_volumes, world, - mdl_arrcount( &world->ent_volume ), 1 ); /* main bulk */ world_gen_generate_meshes(); @@ -337,8 +336,8 @@ VG_STATIC void world_init_blank( world_instance *world ) world->surface_count = 0; world->geo_bh = NULL; - world->volume_bh = NULL; - world->audio_bh = NULL; + world->entity_bh = NULL; + world->entity_list = NULL; world->rendering_gate = NULL; world->water.enabled = 0;