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:
ephphatha 2021-09-23 19:09:04 +10:00 committed by Anders Jenbo
commit 71e39dda6f
2 changed files with 53 additions and 20 deletions

View file

@ -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;