mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
@ -4969,8 +4969,12 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
|
|||||||
void CGameHandler::playerMessage(PlayerColor player, const std::string &message, ObjectInstanceID currObj)
|
void CGameHandler::playerMessage(PlayerColor player, const std::string &message, ObjectInstanceID currObj)
|
||||||
{
|
{
|
||||||
bool cheated = false;
|
bool cheated = false;
|
||||||
|
|
||||||
|
if(!getPlayerSettings(player)->isControlledByAI())
|
||||||
|
{
|
||||||
PlayerMessageClient temp_message(player, message);
|
PlayerMessageClient temp_message(player, message);
|
||||||
sendAndApply(&temp_message);
|
sendAndApply(&temp_message);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> words;
|
std::vector<std::string> words;
|
||||||
boost::split(words, message, boost::is_any_of(" "));
|
boost::split(words, message, boost::is_any_of(" "));
|
||||||
|
Reference in New Issue
Block a user