1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fixed creature bonus parser. Fixed several uninitialized variables. Updated data build script to v0.85.

This commit is contained in:
Frank Zago
2011-06-03 03:23:50 +00:00
parent 4d699d735c
commit aca118b613
7 changed files with 15 additions and 6 deletions

View File

@@ -605,7 +605,7 @@ void CServerHandler::startServer()
{
th.update();
serverThread = new boost::thread(&CServerHandler::callServer, this); //runs server executable; //TODO: will it work on non-windows platforms?
serverThread = new boost::thread(&CServerHandler::callServer, this); //runs server executable;
if(verbose)
tlog0 << "Setting up thread calling server: " << th.getDif() << std::endl;
}
@@ -644,6 +644,7 @@ CServerHandler::CServerHandler(bool runServer /*= false*/)
serverThread = NULL;
shared = NULL;
port = boost::lexical_cast<std::string>(conf.cc.port);
verbose = false;
boost::interprocess::shared_memory_object::remove("vcmi_memory"); //if the application has previously crashed, the memory may not have been removed. to avoid problems - try to destroy it
try