summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 13:45:27 +0100
committerBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 14:22:44 +0100
commit94bfab1a7d1ac3626d15c30b8c6668de9455f3ed (patch)
treee569de48e7553e86d2abf0822c2646c4b1c1f95a /src/localplayer.cpp
parent61959f6a04c6a6712b5334ebd6bf21da4736431f (diff)
downloadmana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.gz
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.bz2
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.xz
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.zip
Adds a follow manager for users
Right click contextual menu on player "follow" entry Cancel the following by moving with mouse or keys Adds a special behavior for map changes
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 86dcf7a2..11cb6655 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -106,7 +106,8 @@ LocalPlayer::LocalPlayer(int id, int job, Map *map):
#endif
mStorage(new Inventory(Net::getInventoryHandler()
->getSize(Net::InventoryHandler::STORAGE))),
- mMessageTime(0)
+ mMessageTime(0),
+ mPlayerFollowed("")
{
// Variable to keep the local player from doing certain actions before a map
// is initialized. e.g. drawing a player's name using the TextManager, since
@@ -1155,4 +1156,4 @@ void LocalPlayer::optionChanged(const std::string &value)
{
setShowName(config.getValue("showownname", 1));
}
-}
+} \ No newline at end of file