summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-30 12:25:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-30 12:25:16 +0300
commit1680d159ecbf75591d2dab1416ff8144c27d4de5 (patch)
treecd34ad27487036265f08d7aa63476c160280d899 /src/spellmanager.cpp
parent9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff)
downloadmanaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz
manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2
manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz
manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index f04d5f9b7..ca164717b 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -131,7 +131,7 @@ void SpellManager::useItem(const int itemId) const
void SpellManager::invoke(const int spellId) const
{
- if (!player_node)
+ if (!localPlayer)
return;
const TextCommand *const spell = getSpell(spellId);
@@ -149,7 +149,7 @@ void SpellManager::invoke(const int spellId) const
spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl())
&& PlayerInfo::getAttribute(Attributes::MP) >= spell->getMana()))
{
- const Being *const target = player_node->getTarget();
+ const Being *const target = localPlayer->getTarget();
if (spell->getTargetType() == NOTARGET)
{
invokeSpell(spell);
@@ -186,7 +186,7 @@ void SpellManager::invokeSpell(const TextCommand *const spell,
std::string SpellManager::parseCommand(std::string command,
const Being *const target)
{
- if (!player_node)
+ if (!localPlayer)
return command;
std::string name;
@@ -201,7 +201,7 @@ std::string SpellManager::parseCommand(std::string command,
}
else
{
- name2 = player_node->getName();
+ name2 = localPlayer->getName();
}
bool found = false;