mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-15 13:33:36 +02:00
hide AI cheating message
This commit is contained in:
parent
588b744534
commit
14d27c788f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user