mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Rename method to better name
This commit is contained in:
parent
d96edd9f56
commit
18a66a4376
@ -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();
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user