-static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
- world_instance *world = world_current_instance();
+void ent_challenge_preupdate( ent_focus_context *ctx )
+{
+ world_instance *world = ctx->world;
+ ent_challenge *challenge = mdl_arritm( &world->ent_challenge, ctx->index );