mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
* CThreadHelper.cpp now belongs to VCMI_lib project
* fixed console on Windows (restored old code) * GeniusAI won't get blocked when it has a hero with tactics in battle * fixed an issue with switching turns in hot-seat mode when there is Cover of Darkness active * suppressed bonus system console output: it goes only to the logfile * [win32] setting thread names (debug purposes) * minor fixes
This commit is contained in:
@@ -31,10 +31,11 @@
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <sstream>
|
||||
#include "CPreGame.h"
|
||||
#include "CBattleInterface.h"
|
||||
#include "../CThreadHelper.h"
|
||||
|
||||
#define NOT_LIB
|
||||
#include "../lib/RegisterTypes.cpp"
|
||||
#include "CBattleInterface.h"
|
||||
extern std::string NAME;
|
||||
namespace intpr = boost::interprocess;
|
||||
|
||||
@@ -127,6 +128,7 @@ void CClient::waitForMoveAndSend(int color)
|
||||
|
||||
void CClient::run()
|
||||
{
|
||||
setThreadName(-1, "CClient::run");
|
||||
try
|
||||
{
|
||||
CPack *pack = NULL;
|
||||
@@ -648,6 +650,7 @@ CServerHandler::~CServerHandler()
|
||||
|
||||
void CServerHandler::callServer()
|
||||
{
|
||||
setThreadName(-1, "CServerHandler::callServer");
|
||||
std::string comm = std::string(BIN_DIR PATH_SEPARATOR SERVER_NAME " ") + port + " > server_log.txt";
|
||||
std::system(comm.c_str());
|
||||
tlog0 << "Server finished\n";
|
||||
|
||||
Reference in New Issue
Block a user