From 28486a0b403a13a197e6471a6fc0fa42791288f2 Mon Sep 17 00:00:00 2001 From: krs Date: Sat, 1 Apr 2023 12:29:49 +0300 Subject: [PATCH] =?UTF-8?q?In=20the=20Silmarillion,=20Gandalf=20is=20refer?= =?UTF-8?q?red=20to=20as=20"Ol=C3=B3rin"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/CGameHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index a7d00a9df..21cec0086 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -5023,7 +5023,7 @@ void CGameHandler::playerMessage(PlayerColor player, const std::string &message, } int obj = 0; - if (words.size() == 2 && words[0] != "vcmiexp" && words[0] != "vcmimithrandir") + if (words.size() == 2 && words[0] != "vcmiexp" && words[0] != "vcmiolorin") { obj = std::atoi(words[1].c_str()); if (obj) @@ -5035,7 +5035,7 @@ void CGameHandler::playerMessage(PlayerColor player, const std::string &message, if (!town && hero) town = hero->visitedTown; - if(words.size() > 1 && (words[0] == "vcmiarmy" || words[0] == "vcminissi" || words[0] == "vcmiexp" || words[0] == "vcmimithrandir")) + if(words.size() > 1 && (words[0] == "vcmiarmy" || words[0] == "vcminissi" || words[0] == "vcmiexp" || words[0] == "vcmiolorin")) { std::string cheatCodeWithOneParameter = std::string(words[0]) + " " + words[1]; handleCheatCode(cheatCodeWithOneParameter, player, hero, town, cheated); @@ -7055,7 +7055,7 @@ void CGameHandler::handleCheatCode(std::string & cheat, PlayerColor player, cons ///selected hero gains a new level changePrimSkill(hero, PrimarySkill::EXPERIENCE, VLC->heroh->reqExp(hero->level + 1) - VLC->heroh->reqExp(hero->level)); } - else if (boost::starts_with(cheat, "vcmiexp") || boost::starts_with(cheat, "vcmimithrandir")) + else if (boost::starts_with(cheat, "vcmiexp") || boost::starts_with(cheat, "vcmiolorin")) { cheated = true; if (!hero) return;