diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-01 20:20:21 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-10 20:31:51 +0100 |
commit | 683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch) | |
tree | 065526585f7af480df2eae40ed0acc1595331fd4 /src/localplayer.cpp | |
parent | 8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff) | |
download | mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.gz mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.bz2 mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.xz mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.zip |
player_node -> local_player
Reviewed-by: Ablu
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 0ee35ebe..4bbb8dc5 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -60,7 +60,7 @@ #define AWAY_LIMIT_TIMER 60 -LocalPlayer *player_node = NULL; +LocalPlayer *local_player = NULL; LocalPlayer::LocalPlayer(int id, int subtype): Being(id, PLAYER, subtype, 0), @@ -727,7 +727,7 @@ void LocalPlayer::setWalkingDir(int dir) // been pressing, stop (do not send this stop to the server) and // start in the new direction if (dir && (dir != getWalkingDir())) - player_node->stopWalking(false); + local_player->stopWalking(false); // Else, he is not pressing a key, // and the current path hasn't been sent by mouse, @@ -1118,8 +1118,8 @@ void LocalPlayer::afkRespond(ChatTab *tab, const std::string &nick) void AwayListener::action(const gcn::ActionEvent &event) { - if (event.getId() == "ok" && player_node->getAwayMode()) + if (event.getId() == "ok" && local_player->getAwayMode()) { - player_node->changeAwayMode(); + local_player->changeAwayMode(); } } |