diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 450fcef11..1ce070f19 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -6870,6 +6870,9 @@ void CGameHandler::spawnWanderingMonsters(CreatureID creatureID) void CGameHandler::handleCheatCode(std::string & cheat, PlayerColor player, const CGHeroInstance * hero, const CGTownInstance * town, bool & cheated) { + //Make cheat case-insensitive + std::transform(cheat.begin(), cheat.end(), cheat.begin(), [](unsigned char c){ return std::tolower(c); }); + if (cheat == "vcmiistari" || cheat == "vcmispells") { cheated = true;