mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fix client & server compilation
This commit is contained in:
@@ -984,7 +984,7 @@ std::vector<CGPathNode *> AINodeStorage::calculateTeleportations(
|
||||
struct TowmPortalFinder
|
||||
{
|
||||
const std::vector<CGPathNode *> & initialNodes;
|
||||
MasteryLevel townPortalSkillLevel;
|
||||
MasteryLevel::Type townPortalSkillLevel;
|
||||
uint64_t movementNeeded;
|
||||
const ChainActor * actor;
|
||||
const CGHeroInstance * hero;
|
||||
@@ -1006,7 +1006,7 @@ struct TowmPortalFinder
|
||||
townPortal = spellID.toSpell();
|
||||
|
||||
// TODO: Copy/Paste from TownPortalMechanics
|
||||
townPortalSkillLevel = MasteryLevel(hero->getSpellSchoolLevel(townPortal));
|
||||
townPortalSkillLevel = MasteryLevel::Type(hero->getSpellSchoolLevel(townPortal));
|
||||
movementNeeded = GameConstants::BASE_MOVEMENT_COST * (townPortalSkillLevel >= MasteryLevel::EXPERT ? 2 : 3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user