projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revision 2
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_challenge.c
diff --git
a/ent_challenge.c
b/ent_challenge.c
index 72149b1a4d4dd72327c01b71ad6207cb8a8b2fbe..ce87366421522049a14c304c74331c2dee5766fc 100644
(file)
--- a/
ent_challenge.c
+++ b/
ent_challenge.c
@@
-1,12
+1,10
@@
-#ifndef ENT_CHALLENGE_C
-#define ENT_CHALLENGE_C
-
#include "entity.h"
#include "input.h"
#include "gui.h"
#include "audio.h"
#include "entity.h"
#include "input.h"
#include "gui.h"
#include "audio.h"
-static void ent_challenge_call( world_instance *world, ent_call *call ){
+void ent_challenge_call( world_instance *world, ent_call *call )
+{
u32 index = mdl_entity_id_id( call->id );
ent_challenge *challenge = mdl_arritm( &world->ent_challenge, index );
u32 index = mdl_entity_id_id( call->id );
ent_challenge *challenge = mdl_arritm( &world->ent_challenge, index );
@@
-42,7
+40,8
@@
static void ent_challenge_call( world_instance *world, ent_call *call ){
}
}
}
}
-static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
+void ent_challenge_preupdate( ent_challenge *challenge, int active )
+{
world_instance *world = world_current_instance();
/* maximum distance from active challenge */
world_instance *world = world_current_instance();
/* maximum distance from active challenge */
@@
-115,5
+114,3
@@
static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
static void ent_challenge_render( ent_challenge *challenge ){
}
static void ent_challenge_render( ent_challenge *challenge ){
}
-
-#endif /* ENT_CHALLENGE_C */