mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Fix build
This commit is contained in:
parent
39d2f27589
commit
579b64cd39
lib/bonuses
@ -18,6 +18,8 @@
|
|||||||
#include "../VCMI_Lib.h"
|
#include "../VCMI_Lib.h"
|
||||||
#include "../IGameSettings.h"
|
#include "../IGameSettings.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
int BonusCacheBase::getBonusValueImpl(BonusCacheEntry & currentValue, const CSelector & selector, BonusCacheMode mode) const
|
int BonusCacheBase::getBonusValueImpl(BonusCacheEntry & currentValue, const CSelector & selector, BonusCacheMode mode) const
|
||||||
{
|
{
|
||||||
if (target->getTreeVersion() == currentValue.version)
|
if (target->getTreeVersion() == currentValue.version)
|
||||||
@ -174,3 +176,5 @@ int BonusCachePerTurn::getValue(int turns) const
|
|||||||
return getValueUncached(turns);
|
return getValueUncached(turns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "BonusSelector.h"
|
#include "BonusSelector.h"
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
enum class BonusCacheMode : int8_t
|
enum class BonusCacheMode : int8_t
|
||||||
{
|
{
|
||||||
VALUE, // total value of bonus will be cached
|
VALUE, // total value of bonus will be cached
|
||||||
@ -180,3 +182,5 @@ public:
|
|||||||
|
|
||||||
int getValue(int turns) const;
|
int getValue(int turns) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user