]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Awards.h
Fixed some warnings
[lugaru.git] / Source / Awards.h
index 83b61c09643a2ef874cb5f260754ff6ca8c31864..03bf4e596eb0c165d3d09089f60550e51fed61a7 100644 (file)
@@ -26,14 +26,10 @@ enum bonus_types {
 #define DECLARE_BONUS(id, ...) id,
 #include "Bonuses.def"
 #undef DECLARE_BONUS
-bonus_count
+    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;
@@ -48,14 +44,10 @@ enum award_types {
 #define DECLARE_AWARD(id, name) id,
 #include "Awards.def"
 #undef DECLARE_AWARD
-award_count
+    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 *);