mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
cheats + grail in town
This commit is contained in:
@@ -513,7 +513,13 @@ void PlayerMessageProcessor::executeCheatCode(const std::string & cheatName, Pla
|
||||
|
||||
assert(callbacks.count(cheatName));
|
||||
if (callbacks.count(cheatName))
|
||||
{
|
||||
PlayerCheated pc;
|
||||
pc.player = player;
|
||||
gameHandler->sendAndApply(&pc);
|
||||
|
||||
callbacks.at(cheatName)();
|
||||
}
|
||||
}
|
||||
|
||||
void PlayerMessageProcessor::sendSystemMessage(std::shared_ptr<CConnection> connection, const std::string & message)
|
||||
|
||||
Reference in New Issue
Block a user