From 18a66a4376ae4dec225af20fee2b8b945e6990f4 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 27 Apr 2023 00:46:23 +0300 Subject: [PATCH] Rename method to better name --- client/adventureMap/CAdventureMapInterface.cpp | 6 +++--- client/adventureMap/CAdventureMapInterface.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/adventureMap/CAdventureMapInterface.cpp b/client/adventureMap/CAdventureMapInterface.cpp index 8498edd21..884595b0b 100644 --- a/client/adventureMap/CAdventureMapInterface.cpp +++ b/client/adventureMap/CAdventureMapInterface.cpp @@ -747,11 +747,11 @@ void CAdventureMapInterface::onTileLeftClicked(const int3 &mapPos) { case SpellID::SCUTTLE_BOAT: //Scuttle Boat if(topBlocking && topBlocking->ID == Obj::BOAT) - leaveCastingMode(mapPos); + performSpellcasting(mapPos); break; case SpellID::DIMENSION_DOOR: if(!tile || tile->isClear(heroTile)) - leaveCastingMode(mapPos); + performSpellcasting(mapPos); break; } return; @@ -1037,7 +1037,7 @@ void CAdventureMapInterface::abortCastingMode() LOCPLINT->showInfoDialog(CGI->generaltexth->allTexts[731]); //Spell cancelled } -void CAdventureMapInterface::leaveCastingMode(const int3 & dest) +void CAdventureMapInterface::performSpellcasting(const int3 & dest) { SpellID id = spellBeingCasted->id; exitCastingMode(); diff --git a/client/adventureMap/CAdventureMapInterface.h b/client/adventureMap/CAdventureMapInterface.h index 09353b240..4d9615b90 100644 --- a/client/adventureMap/CAdventureMapInterface.h +++ b/client/adventureMap/CAdventureMapInterface.h @@ -100,7 +100,7 @@ private: /// exits currently opened world view mode and returns to normal map void exitWorldView(); void exitCastingMode(); - void leaveCastingMode(const int3 & castTarget); + void performSpellcasting(const int3 & castTarget); void abortCastingMode(); protected: