1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Option to allow / ban certain types of town in a template.

This commit is contained in:
DjWarmonger
2014-10-30 10:00:29 +01:00
parent 7289dbafa9
commit 530a3e69bf
5 changed files with 44 additions and 10 deletions

View File

@@ -115,12 +115,14 @@ void LibClasses::init()
createHandler(terviewh, "Terrain view pattern", pomtime);
createHandler(tplh, "Template", pomtime);
logGlobal->infoStream()<<"\tInitializing handlers: "<< totalTime.getDiff();
modh->load();
createHandler(tplh, "Template", pomtime); //templates need already resolved identifiers (refactor?)
modh->afterLoad();
//FIXME: make sure that everything is ok after game restart
//TODO: This should be done every time mod config changes