1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* Moved CConfigHandler from client to lib, CMake/Makefile need updating. I believe other projects besides client also need access to settings. (surprisingly there was a "server" category used only by client... and now VCAI.)

* It is possible to set the battle ai that'll be used by neutrals by typing in VCMI console:
setBattleAI <AIName>
VCAI also respects that setting and uses given AI as its battle back-end.
This commit is contained in:
Michał W. Urbańczyk
2012-09-29 10:59:43 +00:00
parent 74cd2e77fe
commit f8a27a9fdb
28 changed files with 73 additions and 43 deletions

View File

@ -127,7 +127,7 @@ void CAdventureAI::battleStart(const CCreatureSet *army1, const CCreatureSet *ar
{
assert(!battleAI);
assert(cbc);
battleAI = CDynLibHandler::getNewBattleAI(battleAIName);
battleAI = CDynLibHandler::getNewBattleAI(getBattleAIName());
battleAI->init(cbc);
battleAI->battleStart(army1, army2, tile, hero1, hero2, side);
}