X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.c;fp=world_render.c;h=2cbd07beaecd4519cb1920cc9f787b03acb81c0d;hb=b2dcc03339aff859abd8046f6845aa089d3106ca;hp=9e5527bd435928645384b00cb664f3bfb452e9e0;hpb=71176319956de5c004f7a15ccc462ce3e43a749f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.c b/world_render.c index 9e5527b..2cbd07b 100644 --- a/world_render.c +++ b/world_render.c @@ -417,6 +417,7 @@ void world_render_challenges( world_instance *world, struct world_pass *pass, v3f pos, int layer_depth ){ if( !world ) return; if( skaterift.activity == k_skaterift_replay ) return; + if( world != world_current_instance() ) return; /* sort lists */ f32 radius = 40.0f; @@ -453,7 +454,7 @@ void world_render_challenges( world_instance *world, struct world_pass *pass, while( mdl_entity_id_type(next) == k_ent_objective ){ u32 index = mdl_entity_id_id( next ); objective_list[ objective_count ++ ] = index; - + ent_objective *objective = mdl_arritm( &world->ent_objective, index ); next = objective->id_next; }