mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Possibility to switch autoskip in the runtime.
This commit is contained in:
parent
55165a8535
commit
55271e621b
@ -715,6 +715,11 @@ void processCommand(const std::string &message)
|
|||||||
logGlobal->warnStream() << "Setting not changes, AI not found or invalid!";
|
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
|
else if(client && client->serv && client->serv->connected && LOCPLINT) //send to server
|
||||||
{
|
{
|
||||||
boost::unique_lock<boost::recursive_mutex> un(*LOCPLINT->pim);
|
boost::unique_lock<boost::recursive_mutex> un(*LOCPLINT->pim);
|
||||||
|
Loading…
Reference in New Issue
Block a user