1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

option for allowing cheats

This commit is contained in:
Laserlicht
2023-12-27 14:39:35 +01:00
committed by GitHub
parent bb6179d05e
commit fc4827c89c
14 changed files with 67 additions and 4 deletions

View File

@@ -507,6 +507,13 @@ void CServerHandler::setTurnTimerInfo(const TurnTimerInfo & info) const
sendLobbyPack(lstt);
}
void CServerHandler::setCheatAllowedInfo(bool allowed) const
{
LobbySetCheatAllowed lsca;
lsca.allowed = allowed;
sendLobbyPack(lsca);
}
void CServerHandler::sendMessage(const std::string & txt) const
{
std::istringstream readed;