mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Some work towards useful AI:
-It is possible to toggle adventure AI on / off typing "ai" in the console (default is true) -General cleaning and formatting of code -Some minor optimizations -Teal console log for AI AI tends to hang in the maze of mutexes and current player interface, further investigation is needed. Fixed #580 minor tweaks
This commit is contained in:
@@ -34,6 +34,7 @@ DLL_EXPORT CLogger tlog2(2);
|
||||
DLL_EXPORT CLogger tlog3(3);
|
||||
DLL_EXPORT CLogger tlog4(4);
|
||||
DLL_EXPORT CLogger tlog5(5);
|
||||
DLL_EXPORT CLogger tlog6(-2);
|
||||
|
||||
DLL_EXPORT CConsoleHandler *console = NULL;
|
||||
DLL_EXPORT std::ostream *logfile = NULL
|
||||
@@ -205,6 +206,8 @@ void LibClasses::init()
|
||||
spellh = new CSpellHandler;
|
||||
spellh->loadSpells();
|
||||
tlog0<<"\tSpell handler: "<<pomtime.getDif()<<std::endl;
|
||||
|
||||
IS_AI_ENABLED = true;
|
||||
}
|
||||
|
||||
void LibClasses::clear()
|
||||
|
||||
Reference in New Issue
Block a user