X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_region.c;h=44d49a096637bff1f4e6777aedb38e7820fcf12f;hb=888e62fcd8f9777cee774fbb8fab2e52660303a7;hp=fd24f4e1cd3b6f3dc98bfc6b025475b011de76f7;hpb=0d211bc488751a2cbc380990492ec549e91b19ca;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_region.c b/ent_region.c index fd24f4e..44d49a0 100644 --- a/ent_region.c +++ b/ent_region.c @@ -113,6 +113,20 @@ static void ent_region_re_eval( world_instance *world ){ region->flags = combined; world_total &= combined; + + /* run unlock triggers. v105+ */ + if( world->meta.info.version >= 105 ){ + if( region->flags & (k_ent_route_flag_achieve_gold| + k_ent_route_flag_achieve_silver) ){ + if( region->target0[0] ){ + ent_call call; + call.data = NULL; + call.id = region->target0[0]; + call.function = region->target0[1]; + entity_call( world, &call ); + } + } + } } u32 instance_id = world - world_static.instances;