diff --git src/worldmap.c b/src/worldmap.c index 735c108..7d23fb7 100644 --- src/worldmap.c +++ src/worldmap.c @@ -15,6 +15,8 @@ #define DO_DRAW 1 #define DO_FREE 2 +static_world static_world_datas; + myList* perform_road( int x1, int y1, int x2, int y2) { myList* road_list; myList* road_list2; diff --git src/worldmap.h b/src/worldmap.h index 4b53ddc..5965f5e 100644 --- src/worldmap.h +++ src/worldmap.h @@ -30,10 +30,11 @@ void draw_level_name(int current_level,myList * all_level_desc); #define EXTERN_WLD #endif -EXTERN_WLD struct { +typedef struct { /* combinaison de player */ unsigned int combi; unsigned int coins; -} static_world_datas; +} static_world; +extern static_world static_world_datas; #endif