]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Awards.h
Fixed some warnings
[lugaru.git] / Source / Awards.h
index 8e45a680b211bf1a9999ffc04e54ffa7586059b9..03bf4e596eb0c165d3d09089f60550e51fed61a7 100644 (file)
@@ -29,11 +29,7 @@ enum bonus_types {
     bonus_count
 };
 
-static const char *bonus_names[bonus_count] = {
-#define DECLARE_BONUS(id, name, ...) name,
-#include "Bonuses.def"
-#undef DECLARE_BONUS
-};
+extern const char *bonus_names[bonus_count];
 
 extern int bonus;
 extern float bonusvalue;
@@ -51,11 +47,7 @@ enum award_types {
     award_count
 };
 
-static const char *award_names[award_count] = {
-#define DECLARE_AWARD(id, name) name,
-#include "Awards.def"
-#undef DECLARE_AWARD
-};
+extern const char *award_names[award_count];
 
 extern int award_awards(int *);