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_route.c
diff --git
a/ent_route.c
b/ent_route.c
index fa1d66900c452edbf58f5641cf8351f5d1a574c7..8f95a26d292ce22c76c528e1819d8394f6cb7408 100644
(file)
--- a/
ent_route.c
+++ b/
ent_route.c
@@
-1,11
+1,11
@@
-#ifndef ENT_ROUTE_C
-#define ENT_ROUTE_C
-
#include "ent_route.h"
#include "input.h"
#include "gui.h"
#include "ent_route.h"
#include "input.h"
#include "gui.h"
-static void ent_route_call( world_instance *world, ent_call *call ){
+struct global_ent_route global_ent_route;
+
+void ent_route_call( world_instance *world, ent_call *call )
+{
u32 index = mdl_entity_id_id( call->id );
ent_route *route = mdl_arritm( &world->ent_route, index );
u32 index = mdl_entity_id_id( call->id );
ent_route *route = mdl_arritm( &world->ent_route, index );
@@
-36,7
+36,8
@@
static void ent_route_call( world_instance *world, ent_call *call ){
}
/* TODO: these should recieve the world instance */
}
/* TODO: these should recieve the world instance */
-static void ent_route_preupdate( ent_route *route, int active ){
+void ent_route_preupdate( ent_route *route, int active )
+{
if( !active ) return;
world_instance *world = world_current_instance();
if( !active ) return;
world_instance *world = world_current_instance();
@@
-66,5
+67,3
@@
static void ent_route_preupdate( ent_route *route, int active ){
return;
}
}
return;
}
}
-
-#endif /* ENT_ROUTE_C */