rename INFINITE to INFINITE_AMOUNT
This commit is contained in:
@@ -317,7 +317,7 @@ bool load_scenario_v1(fs::path file_to_load, cScenario& scenario, bool only_head
|
||||
if(info.type == eShopItemType::ITEM) {
|
||||
int end = info.first + info.count;
|
||||
end = min(end, scenario.scen_items.size());
|
||||
shop.addItems(info.first, scenario.scen_items.begin() + info.first, scenario.scen_items.begin() + end, cShop::INFINITE);
|
||||
shop.addItems(info.first, scenario.scen_items.begin() + info.first, scenario.scen_items.begin() + end, cShop::INFINITE_AMOUNT);
|
||||
} else {
|
||||
int max = 62;
|
||||
if(info.type == eShopItemType::ALCHEMY)
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
#include "item.hpp"
|
||||
#include "dialogxml/widgets/pictypes.hpp" // for pic_num_t
|
||||
|
||||
// Windows headers are really annoying with their defined constants.
|
||||
#ifdef INFINITE
|
||||
#undef INFINITE
|
||||
#endif
|
||||
|
||||
enum class eShopType {NORMAL, ALLOW_DEAD, RANDOM};
|
||||
|
||||
enum class eShopPrompt {SHOPPING, HEALING, MAGE, PRIEST, SPELLS, ALCHEMY, TRAINING};
|
||||
@@ -67,7 +62,7 @@ class cShop {
|
||||
pic_num_t face;
|
||||
size_t firstEmpty() const;
|
||||
public:
|
||||
static const size_t INFINITE = 0;
|
||||
static const size_t INFINITE_AMOUNT = 0;
|
||||
cShop();
|
||||
cShop(eShopType type, eShopPrompt prompt, pic_num_t pic, int adj, std::string name);
|
||||
explicit cShop(std::string name);
|
||||
|
||||
Reference in New Issue
Block a user