Skip to content

Commit

Permalink
MenuCharacter: Hide upgrade buttons when labels are hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkster committed Jan 15, 2025
1 parent 0412b44 commit 7ecbaad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Engine fixes:
* Fixed combat text being shown for zero damage reflect.
* Added validation to player XP table parsing to ensure that XP thresholds are not less than those for previous levels.
* Errors in saved fog-of-war data no longer causes a forced exit & mod reset.
* Primary stat upgrade buttons are now hidden in the Character menu if the cooresponding label is hidden.
* Android: Fix 'Flare' directory not being automatically created.
* Android: Added a dialog to direct the player to the wiki page for installing if no game data is found.

Expand Down
2 changes: 1 addition & 1 deletion src/MenuCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ void MenuCharacter::logic() {

if (pc->stats.hp > 0 && have_skill_points) {
for (size_t i = 0; i < eset->primary_stats.list.size(); ++i) {
if (pc->stats.primary[i] < pc->stats.max_points_per_stat) {
if (pc->stats.primary[i] < pc->stats.max_points_per_stat && !cstat[i+2].label->isHidden()) {
upgradeButton[i]->enabled = true;
tablist.add(upgradeButton[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 14, 93);
Version VersionInfo::ENGINE(1, 14, 94);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit 7ecbaad

Please sign in to comment.