switch to entity list
[carveJwlIkooP6JGAAIwe30JlM.git] / world_load.c
index bbf5c91510c5a7d0b488b360f30b4479686b807f..01fa9cc6da2a6796b11f2d5a9bf4e048b69e3112 100644 (file)
@@ -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;