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_region.c
diff --git
a/ent_region.c
b/ent_region.c
index 44d49a096637bff1f4e6777aedb38e7820fcf12f..e58d594708443bd46c3ef92e70569932410348ff 100644
(file)
--- a/
ent_region.c
+++ b/
ent_region.c
@@
-3,7
+3,10
@@
#include "network_common.h"
#include "network.h"
#include "network_common.h"
#include "network.h"
-static u32 region_spark_colour( u32 flags ){
+struct global_ent_region global_ent_region;
+
+u32 region_spark_colour( u32 flags )
+{
if( flags & k_ent_route_flag_achieve_gold )
return 0xff8ce0fa;
else if( flags & k_ent_route_flag_achieve_silver )
if( flags & k_ent_route_flag_achieve_gold )
return 0xff8ce0fa;
else if( flags & k_ent_route_flag_achieve_silver )
@@
-12,7
+15,8
@@
static u32 region_spark_colour( u32 flags ){
return 0x00;
}
return 0x00;
}
-static void ent_region_call( world_instance *world, ent_call *call ){
+void ent_region_call( world_instance *world, ent_call *call )
+{
ent_region *region =
mdl_arritm( &world->ent_region, mdl_entity_id_id(call->id) );
ent_region *region =
mdl_arritm( &world->ent_region, mdl_entity_id_id(call->id) );
@@
-61,7
+65,8
@@
static void ent_region_call( world_instance *world, ent_call *call ){
/*
* reevaluate all achievements to calculate the compiled achievement
*/
/*
* reevaluate all achievements to calculate the compiled achievement
*/
-static void ent_region_re_eval( world_instance *world ){
+void ent_region_re_eval( world_instance *world )
+{
u32 world_total = k_ent_route_flag_achieve_gold |
k_ent_route_flag_achieve_silver;
u32 world_total = k_ent_route_flag_achieve_gold |
k_ent_route_flag_achieve_silver;