8a266ae448f24b96fdff5fae22fbb6e820781afe
6 VG_STATIC
void ent_unlock_call( world_instance
*world
, ent_call
*call
){
7 u32 index
= mdl_entity_id_id( call
->id
);
8 ent_unlock
*unlock
= mdl_arritm( &world
->ent_unlock
, index
);
10 if( call
->function
== 0 ){ /* unlock() */
11 if( !unlock
->status
){
12 vg_info( "unlock( '%s' )\n",
13 mdl_pstr( &world
->meta
, unlock
->pstr_alias
) );
16 call
.function
= unlock
->target_event
;
17 call
.id
= unlock
->target
;
18 entity_call( world
, &call
);
24 vg_error( "Unhandled function id: %u\n", call
->function
);
28 #endif /* ENT_UNLOCK_C */