projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move source content folders
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_npc.c
diff --git
a/ent_npc.c
b/ent_npc.c
index 8fccd29552bab08f21344dba4951cdc848a7496f..7a4b484b534f22d389e3e3793cc15739a311109f 100644
(file)
--- 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) )
{
{
if( button_down(k_srbind_maccept) )
{