{
u32 index = mdl_entity_id_id( call->id );
ent_objective *objective = mdl_arritm( &world->ent_objective, index );
{
u32 index = mdl_entity_id_id( call->id );
ent_objective *objective = mdl_arritm( &world->ent_objective, index );
- if( call->function == 0 ){
- if( objective->flags & (k_ent_objective_hidden|
- k_ent_objective_passed)) return;
+ if( call->function == 0 )
+ {
+ if( objective->flags & (k_ent_objective_hidden|k_ent_objective_passed))
+ {
+ return k_entity_call_result_OK;
+ }
if( (world_static.challenge_target == objective) &&
ent_objective_check_filter( objective )){
ent_objective_pass( world, objective );
}
if( (world_static.challenge_target == objective) &&
ent_objective_check_filter( objective )){
ent_objective_pass( world, objective );
}
objective->flags &= ~k_ent_objective_hidden;
if( mdl_entity_id_type( objective->id_next ) == k_ent_objective ){
call->id = objective->id_next;
entity_call( world, call );
}
objective->flags &= ~k_ent_objective_hidden;
if( mdl_entity_id_type( objective->id_next ) == k_ent_objective ){
call->id = objective->id_next;
entity_call( world, call );
}
objective->flags |= k_ent_objective_hidden;
if( mdl_entity_id_type( objective->id_next ) == k_ent_objective ){
call->id = objective->id_next;
entity_call( world, call );
}
objective->flags |= k_ent_objective_hidden;
if( mdl_entity_id_type( objective->id_next ) == k_ent_objective ){
call->id = objective->id_next;
entity_call( world, call );
}