X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAwards.h;h=83b61c09643a2ef874cb5f260754ff6ca8c31864;hb=bbf8873b80baf3cb468ac12b3f62b0938320fef1;hp=9168f1cbd786da45d30baade5d75005092ded11f;hpb=fb33deea78909d498c363d973cda2c5d0d334314;p=lugaru.git diff --git a/Source/Awards.h b/Source/Awards.h index 9168f1c..83b61c0 100644 --- a/Source/Awards.h +++ b/Source/Awards.h @@ -23,14 +23,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define AWARDS_H enum bonus_types { -#define DECLARE_BONUS(id, name) id, +#define DECLARE_BONUS(id, ...) id, #include "Bonuses.def" #undef DECLARE_BONUS bonus_count }; static const char *bonus_names[bonus_count] = { -#define DECLARE_BONUS(id, name) name, +#define DECLARE_BONUS(id, name, ...) name, #include "Bonuses.def" #undef DECLARE_BONUS }; @@ -42,6 +42,8 @@ extern float bonustime; extern float startbonustotal; extern float bonusnum[100]; +extern void award_bonus(int playerid, int bonusid, int alt_value = 0); + enum award_types { #define DECLARE_AWARD(id, name) id, #include "Awards.def"