1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

hide AI cheating message

This commit is contained in:
Andrii Danylchenko
2023-01-31 20:14:44 +02:00
committed by Andrii Danylchenko
parent 588b744534
commit 14d27c788f

View File

@@ -5176,8 +5176,11 @@ void CGameHandler::playerMessage(PlayerColor player, const std::string &message,
if (cheated)
{
SystemMessage temp_message(VLC->generaltexth->allTexts[260]);
sendAndApply(&temp_message);
if(!getPlayerSettings(player)->isControlledByAI())
{
SystemMessage temp_message(VLC->generaltexth->allTexts[260]);
sendAndApply(&temp_message);
}
if(!player.isSpectator())
checkVictoryLossConditionsForPlayer(player);//Player enter win code or got required art\creature