revision 2
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_objective.c
index ce5ad0f2168c9067d504a0ca8cc17d4f05b0c8c8..66b822db62d9e4eb9bf2a20cd71ab76db8c2230f 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef ENT_OBJECTIVE_C
-#define ENT_OBJECTIVE_C
-
 #include "world.h"
 #include "world_load.h"
 #include "entity.h"
 #include "audio.h"
 #include "steam.h"
+#include "ent_region.h"
+#include "player.h"
+#include "player_skate.h"
 
 static void ent_objective_pass( world_instance *world, 
                                    ent_objective *objective ){
@@ -81,7 +81,8 @@ static int ent_objective_check_filter( ent_objective *objective ){
    }
 }
 
-static void ent_objective_call( world_instance *world, ent_call *call ){
+void ent_objective_call( world_instance *world, ent_call *call )
+{
    u32 index = mdl_entity_id_id( call->id );
    ent_objective *objective = mdl_arritm( &world->ent_objective, index );
 
@@ -127,5 +128,3 @@ static void ent_objective_call( world_instance *world, ent_call *call ){
       vg_error( "Unhandled function id: %u\n", call->function );
    }
 }
-
-#endif /* ENT_OBJECTIVE_C */