X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gen.c;h=b7aaf50995caef93d29660110007cd35696928f5;hb=2329044d44a5aff035b01926f7901d9e89ad284e;hp=81ad00cbc3c3926e7f2e62ae3344876f15799255;hpb=844527ec68c063d78d4993bd8e4053f9ddc47b78;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gen.c b/world_gen.c index 81ad00c..b7aaf50 100644 --- a/world_gen.c +++ b/world_gen.c @@ -494,7 +494,7 @@ VG_STATIC void world_gen_compute_light_indices( world_instance *world ){ /* * Rendering pass needed to complete the world */ -VG_STATIC void async_world_postprocess_render( void *payload, u32 _size ){ +VG_STATIC void async_world_postprocess( void *payload, u32 _size ){ /* create scene lighting buffer */ world_instance *world = payload; @@ -604,18 +604,7 @@ VG_STATIC void async_world_postprocess_render( void *payload, u32 _size ){ glBufferSubData( GL_UNIFORM_BUFFER, 0, sizeof(struct ub_world_lighting), &world->ub_lighting ); - /* yes we are using this as the entity begin thing. FIXME */ - world->probabilities[ k_probability_curve_constant ] = 1.0f; - for( u32 i=0; ient_audio); i++ ){ - ent_audio *audio = mdl_arritm(&world->ent_audio,i); - if( audio->flags & AUDIO_FLAG_AUTO_START ){ - ent_call call; - call.data = NULL; - call.function = k_ent_function_trigger; - call.id = mdl_entity_id( k_ent_audio, i ); - entity_call( world, &call ); - } - } + world->status = k_world_status_loaded; } /* Loads textures from the pack file */