mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Improved threa-safety, almost finished building structures in towns.
This commit is contained in:
8
CMT.cpp
8
CMT.cpp
@@ -31,7 +31,6 @@
|
||||
#include "hch/CHeroHandler.h"
|
||||
#include "hch/CCreatureHandler.h"
|
||||
#include "hch/CSpellHandler.h"
|
||||
#include "hch/CBuildingHandler.h"
|
||||
#include "hch/CMusicHandler.h"
|
||||
#include "hch/CLodHandler.h"
|
||||
#include "hch/CDefHandler.h"
|
||||
@@ -106,6 +105,7 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
CGI->heroh = VLC->heroh;
|
||||
CGI->objh = VLC->objh;
|
||||
CGI->dobjinfo = VLC->dobjinfo;
|
||||
CGI->buildh = VLC->buildh;
|
||||
|
||||
THC std::cout<<"Initializing VCMI_Lib: "<<tmh.getDif()<<std::endl;
|
||||
|
||||
@@ -152,12 +152,6 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
cgi->spellh = spellh;
|
||||
THC std::cout<<"\tSpell handler: "<<pomtime.getDif()<<std::endl;
|
||||
|
||||
CBuildingHandler * buildh = new CBuildingHandler;
|
||||
buildh->loadBuildings();
|
||||
cgi->buildh = buildh;
|
||||
THC std::cout<<"\tBuilding handler: "<<pomtime.getDif()<<std::endl;
|
||||
|
||||
|
||||
|
||||
cgi->pathf = new CPathfinder();
|
||||
THC std::cout<<"\tPathfinder: "<<pomtime.getDif()<<std::endl;
|
||||
|
||||
Reference in New Issue
Block a user