world save position
[carveJwlIkooP6JGAAIwe30JlM.git] / world_volumes.c
index dac790e9baa0d99387186ab20a5b03fc2d20a218..23b8299ccdcdfffe21ed3b1f81049212d242b150 100644 (file)
@@ -23,6 +23,12 @@ static void world_volumes_update( world_instance *world, v3f pos ){
       }
       else{
          /* trigger on exit...... */
+         ent_call basecall;
+         basecall.function = k_ent_function_trigger_leave;
+         basecall.id = mdl_entity_id( k_ent_volume, idx );
+         basecall.data = NULL;
+
+         entity_call( world, &basecall );
       }
    }
    world_static.active_trigger_volume_count = j;