1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Compile fix - do it the old way.

This commit is contained in:
DjWarmonger 2013-02-25 13:28:31 +00:00
parent 2cb86d84fa
commit 28d3574b0b

View File

@ -259,24 +259,24 @@ void CCreatureHandler::loadCreatures()
ncre.abilityRefs = parser.readString(); ncre.abilityRefs = parser.readString();
{ //adding abilities from ZCRTRAIT.TXT { //adding abilities from ZCRTRAIT.TXT
static const std::pair < std::string,Bonus::BonusType> abilityMap [] = static const std::map < std::string,Bonus::BonusType> abilityMap = boost::assign::map_list_of
{{"FLYING_ARMY", Bonus::FLYING}, ("FLYING_ARMY", Bonus::FLYING)
{"SHOOTING_ARMY", Bonus::SHOOTER}, ("SHOOTING_ARMY", Bonus::SHOOTER)
{"SIEGE_WEAPON", Bonus::SIEGE_WEAPON}, ("SIEGE_WEAPON", Bonus::SIEGE_WEAPON)
{"const_free_attack", Bonus::BLOCKS_RETALIATION}, ("const_free_attack", Bonus::BLOCKS_RETALIATION)
{"IS_UNDEAD", Bonus::UNDEAD}, ("IS_UNDEAD", Bonus::UNDEAD)
{"const_no_melee_penalty",Bonus::NO_MELEE_PENALTY}, ("const_no_melee_penalty",Bonus::NO_MELEE_PENALTY)
{"const_jousting",Bonus::JOUSTING}, ("const_jousting",Bonus::JOUSTING)
{"KING_1",Bonus::KING1}, ("KING_1",Bonus::KING1)
{"KING_2",Bonus::KING2}, ("KING_2",Bonus::KING2)
{"KING_3",Bonus::KING3}, ("KING_3",Bonus::KING3)
{"const_no_wall_penalty",Bonus::NO_WALL_PENALTY}, ("const_no_wall_penalty",Bonus::NO_WALL_PENALTY)
{"CATAPULT",Bonus::CATAPULT}, ("CATAPULT",Bonus::CATAPULT)
{"MULTI_HEADED",Bonus::ATTACKS_ALL_ADJACENT}, ("MULTI_HEADED",Bonus::ATTACKS_ALL_ADJACENT)
{"IMMUNE_TO_MIND_SPELLS",Bonus::MIND_IMMUNITY}, ("IMMUNE_TO_MIND_SPELLS",Bonus::MIND_IMMUNITY)
{"IMMUNE_TO_FIRE_SPELLS",Bonus::FIRE_IMMUNITY}, ("IMMUNE_TO_FIRE_SPELLS",Bonus::FIRE_IMMUNITY)
{"IMMUNE_TO_FIRE_SPELLS",Bonus::FIRE_IMMUNITY}, ("IMMUNE_TO_FIRE_SPELLS",Bonus::FIRE_IMMUNITY)
{"HAS_EXTENDED_ATTACK",Bonus::TWO_HEX_ATTACK_BREATH}}; ("HAS_EXTENDED_ATTACK",Bonus::TWO_HEX_ATTACK_BREATH);
auto hasAbility = [&ncre](const std::string name) -> bool auto hasAbility = [&ncre](const std::string name) -> bool
{ {