X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_npc.c;h=7a4b484b534f22d389e3e3793cc15739a311109f;hb=8d336ea2cde7c596296dbaf0d3ce27a82c6c6cf0;hp=8fccd29552bab08f21344dba4951cdc848a7496f;hpb=f01a25e33a54c92e4d6bca0889b76f33af5e51eb;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_npc.c b/ent_npc.c index 8fccd29..7a4b484 100644 --- a/ent_npc.c +++ b/ent_npc.c @@ -177,11 +177,12 @@ entity_call_result ent_npc_call( world_instance *world, ent_call *call ) } } -void ent_npc_preupdate( ent_npc *ent, int active ) +void ent_npc_preupdate( ent_focus_context *ctx ) { - world_instance *world = world_current_instance(); + world_instance *world = ctx->world; + ent_npc *ent = mdl_arritm( &world->ent_npc, ctx->index ); - if( !active ) + if( !ctx->active ) { if( button_down(k_srbind_maccept) ) {