From 5eb7cfc17a62273a5d71fa7b30d15cb3a4435e19 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 8 May 2024 21:23:11 +0200 Subject: [PATCH] LB_PRINCESS instead of magic value 36 --- achievement.cpp | 5 ++++- complex.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/achievement.cpp b/achievement.cpp index fb607aa0..f54de6e3 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -86,9 +86,12 @@ EX const char* leadernames[NUMLEADER] = { "Crossbow (geometric)", // 89 }; +#if HDR +#define LB_PRINCESS 36 #define LB_STATISTICS 62 -#define LB_HALLOWEEN 63 +#define LB_HALLOWEEN 63 #define LB_RACING 81 +#endif EX bool haveLeaderboard(int id); EX int get_currentscore(int id); diff --git a/complex.cpp b/complex.cpp index 1d5340ce..fdab8639 100644 --- a/complex.cpp +++ b/complex.cpp @@ -648,7 +648,7 @@ struct info { if(newdist == OUT_OF_PRISON && princess::challenge) { addMessage(XLAT("Congratulations! Your score is %1.", its(i->value))); achievement_gain_once("PRINCESS2", rg::princess); - if(!cheater) achievement_score(36, i->value); + if(!cheater) achievement_score(LB_PRINCESS, i->value); LATE( showMissionScreen(); ) } }