1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Possibility to switch autoskip in the runtime.

This commit is contained in:
Michał W. Urbańczyk 2014-02-02 14:39:32 +00:00
parent 55165a8535
commit 55271e621b

View File

@ -715,6 +715,11 @@ void processCommand(const std::string &message)
logGlobal->warnStream() << "Setting not changes, AI not found or invalid!";
}
}
else if(cn == "autoskip")
{
Settings session = settings.write["session"];
session["autoSkip"].Bool() = !session["autoSkip"].Bool();
}
else if(client && client->serv && client->serv->connected && LOCPLINT) //send to server
{
boost::unique_lock<boost::recursive_mutex> un(*LOCPLINT->pim);