diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-30 12:25:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-30 12:25:16 +0300 |
commit | 1680d159ecbf75591d2dab1416ff8144c27d4de5 (patch) | |
tree | cd34ad27487036265f08d7aa63476c160280d899 /src/gui/widgets/tabs/socialnavigationtab.h | |
parent | 9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff) | |
download | plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2 plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip |
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/gui/widgets/tabs/socialnavigationtab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialnavigationtab.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/widgets/tabs/socialnavigationtab.h b/src/gui/widgets/tabs/socialnavigationtab.h index 4344e1251..cee569e86 100644 --- a/src/gui/widgets/tabs/socialnavigationtab.h +++ b/src/gui/widgets/tabs/socialnavigationtab.h @@ -71,7 +71,7 @@ class SocialNavigationTab final : public SocialTab void updateList() override final { - if (!socialWindow || !player_node) + if (!socialWindow || !localPlayer) return; const Map *const map = socialWindow->getMap(); @@ -114,8 +114,8 @@ class SocialNavigationTab final : public SocialTab portal->getComment().c_str(), x, y); Avatar *const ava = new Avatar(name); - if (player_node) - ava->setOnline(player_node->isReachable(x, y, true)); + if (localPlayer) + ava->setOnline(localPlayer->isReachable(x, y, true)); else ava->setOnline(false); ava->setLevel(-1); @@ -166,7 +166,7 @@ class SocialNavigationTab final : public SocialTab void selectIndex(const unsigned num) override final { - if (!player_node) + if (!localPlayer) return; std::vector<Avatar*> *const avatars = mBeings->getMembers(); @@ -174,8 +174,8 @@ class SocialNavigationTab final : public SocialTab return; const Avatar *const ava = avatars->at(num); - if (ava && player_node) - player_node->navigateTo(ava->getX(), ava->getY()); + if (ava && localPlayer) + localPlayer->navigateTo(ava->getX(), ava->getY()); } void updateNames() @@ -247,7 +247,7 @@ class SocialNavigationTab final : public SocialTab void addPortal(const int x, const int y) { - if (!socialWindow || !player_node) + if (!socialWindow || !localPlayer) return; const Map *const map = socialWindow->getMap(); @@ -267,8 +267,8 @@ class SocialNavigationTab final : public SocialTab portal->getComment().c_str(), x, y); Avatar *const ava = new Avatar(name); - if (player_node) - ava->setOnline(player_node->isReachable(x, y, true)); + if (localPlayer) + ava->setOnline(localPlayer->isReachable(x, y, true)); else ava->setOnline(false); ava->setLevel(-1); @@ -280,7 +280,7 @@ class SocialNavigationTab final : public SocialTab void removePortal(const int x, const int y) { - if (!socialWindow || !player_node) + if (!socialWindow || !localPlayer) return; const Map *const map = socialWindow->getMap(); |