expose INVENTORY_SIZE to boe.text.cpp

This commit is contained in:
2025-03-19 13:53:56 -05:00
parent e1b2c27c57
commit bed263e720
2 changed files with 2 additions and 2 deletions

View File

@@ -576,7 +576,7 @@ void set_stat_window(eItemWinMode new_stat, bool record) {
item_sbar->setMaximum(array_pos);
break;
default:
item_sbar->setMaximum(INVENTORY_SIZE - LINES_IN_ITEM_WIN);
item_sbar->setMaximum(cPlayer::INVENTORY_SIZE - LINES_IN_ITEM_WIN);
break;
}
item_sbar->setPosition(0);

View File

@@ -77,8 +77,8 @@ class cPlayer : public iLiving {
// It only does this (and should ever do this) in remove_pc and replace_pc!
// Sadly there is no good way to friend just those two functions.
friend class cParty;
static const int INVENTORY_SIZE = 24;
public:
static const int INVENTORY_SIZE = 24;
// A nice convenient bitset with just the low 30 bits set, for initializing spells
static const uint32_t basic_spells;
// This class is shared between the game and the editors, but it should only show help dialogs