projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO about preupdate call style
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_traffic.c
diff --git
a/ent_traffic.c
b/ent_traffic.c
index f7167f29e9d410d0f19f2c096ea46c701a9f6a2b..8bb19b9f673c166f9b2e6f582972e69bd2d05866 100644
(file)
--- a/
ent_traffic.c
+++ b/
ent_traffic.c
@@
-1,9
+1,7
@@
-#ifndef ENT_TRAFFIC_C
-#define ENT_TRAFFIC_C
-
#include "world.h"
#include "world.h"
-static void ent_traffic_update( world_instance *world, v3f pos ){
+void ent_traffic_update( world_instance *world, v3f pos )
+{
for( u32 i=0; i<mdl_arrcount( &world->ent_traffic ); i++ ){
ent_traffic *traffic = mdl_arritm( &world->ent_traffic, i );
for( u32 i=0; i<mdl_arrcount( &world->ent_traffic ); i++ ){
ent_traffic *traffic = mdl_arritm( &world->ent_traffic, i );
@@
-63,5
+61,3
@@
static void ent_traffic_update( world_instance *world, v3f pos ){
vg_line_point( traffic->transform.co, 0.3f, VG__BLUE );
}
}
vg_line_point( traffic->transform.co, 0.3f, VG__BLUE );
}
}
-
-#endif /* ENT_TRAFFIC_C */