Extract common logic for loading items from a save
This was duplicated for loading a save from the menu and transitioning to a new level
This commit is contained in:
parent
f7461fd01d
commit
71e39dda6f
2 changed files with 53 additions and 20 deletions
|
|
@ -42,6 +42,12 @@ namespace devilution {
|
|||
Item Items[MAXITEMS + 1];
|
||||
int ActiveItems[MAXITEMS];
|
||||
int ActiveItemCount;
|
||||
/**
|
||||
* @brief Contains indexes of empty spaces in Items.
|
||||
*
|
||||
* This array effectively duplicates ActiveItems due to differences in implementation to other fixed buffers.
|
||||
* Eventually this can be removed and Items can be treated the same as how Missiles are tracked
|
||||
*/
|
||||
int AvailableItems[MAXITEMS];
|
||||
bool ShowUniqueItemInfoBox;
|
||||
CornerStoneStruct CornerStone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue