X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_entity.c;h=975c008c2d4910ceb48f7feb9c09f98eeccf07fe;hb=1a7f4a35e88698bdb45c90f646f1645589d5511c;hp=73caa0bf8849ec6e83323d824b937733b61c5a26;hpb=2c91a71533b4ce86b9e7fd708420ae05c74d8f52;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_entity.c b/world_entity.c index 73caa0b..975c008 100644 --- a/world_entity.c +++ b/world_entity.c @@ -286,6 +286,17 @@ static void ent_volume_call( world_instance *world, ent_call *call ) entity_call( world, call ); } } + else if( call->function == k_ent_function_trigger_leave ){ + call->id = volume->target; + + if( volume->flags & k_ent_volume_flag_particles ){ + assert(0); + } + else{ + call->function = volume->trigger.event_leave; + entity_call( world, call ); + } + } } static void ent_audio_call( world_instance *world, ent_call *call ){