X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gen.c;h=a454d02509b6baac826cd00b74b7662e3a5985da;hb=7fb47c3eb672f4468da8b5b452c09d44e1389d5f;hp=f7f8eda03658b8638b41888c33507689e65fbfd7;hpb=4c95c9c3e6033cd1360adacef3c80fc4da933715;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gen.c b/world_gen.c index f7f8eda..a454d02 100644 --- a/world_gen.c +++ b/world_gen.c @@ -577,6 +577,19 @@ VG_STATIC void async_world_postprocess_render( void *payload, u32 _size ) glBindBuffer( GL_UNIFORM_BUFFER, world->ubo_lighting ); 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 ); + } + } } /* Loads textures from the pack file */