X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAwards.h;h=03bf4e596eb0c165d3d09089f60550e51fed61a7;hb=e2cad9c4ba05196efe03ab2fed8e51bafda53759;hp=8e45a680b211bf1a9999ffc04e54ffa7586059b9;hpb=50e0eedf09400b0a8d51a9e4342b5e436b8c54a1;p=lugaru.git diff --git a/Source/Awards.h b/Source/Awards.h index 8e45a68..03bf4e5 100644 --- a/Source/Awards.h +++ b/Source/Awards.h @@ -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 *);