expose INVENTORY_SIZE to boe.text.cpp
This commit is contained in:
@@ -576,7 +576,7 @@ void set_stat_window(eItemWinMode new_stat, bool record) {
|
|||||||
item_sbar->setMaximum(array_pos);
|
item_sbar->setMaximum(array_pos);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
item_sbar->setMaximum(INVENTORY_SIZE - LINES_IN_ITEM_WIN);
|
item_sbar->setMaximum(cPlayer::INVENTORY_SIZE - LINES_IN_ITEM_WIN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
item_sbar->setPosition(0);
|
item_sbar->setPosition(0);
|
||||||
|
@@ -77,8 +77,8 @@ class cPlayer : public iLiving {
|
|||||||
// It only does this (and should ever do this) in remove_pc and replace_pc!
|
// 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.
|
// Sadly there is no good way to friend just those two functions.
|
||||||
friend class cParty;
|
friend class cParty;
|
||||||
static const int INVENTORY_SIZE = 24;
|
|
||||||
public:
|
public:
|
||||||
|
static const int INVENTORY_SIZE = 24;
|
||||||
// A nice convenient bitset with just the low 30 bits set, for initializing spells
|
// A nice convenient bitset with just the low 30 bits set, for initializing spells
|
||||||
static const uint32_t basic_spells;
|
static const uint32_t basic_spells;
|
||||||
// This class is shared between the game and the editors, but it should only show help dialogs
|
// This class is shared between the game and the editors, but it should only show help dialogs
|
||||||
|
Reference in New Issue
Block a user