diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-29 20:45:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-29 20:45:54 +0300 |
commit | 5b4160a49385bc6895681c5d103a4a5716829e4b (patch) | |
tree | 2b0119eef31a34b6345ce2b6f49ff8f0cfbca499 /src/localplayer.cpp | |
parent | 085abf777701c8bdb3091084fe851b125e787ae1 (diff) | |
download | ManaVerse-5b4160a49385bc6895681c5d103a4a5716829e4b.tar.gz ManaVerse-5b4160a49385bc6895681c5d103a4a5716829e4b.tar.bz2 ManaVerse-5b4160a49385bc6895681c5d103a4a5716829e4b.tar.xz ManaVerse-5b4160a49385bc6895681c5d103a4a5716829e4b.zip |
Simplify remove listener calls.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index f88423f8e..1acc6a938 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -205,17 +205,8 @@ LocalPlayer::~LocalPlayer() { logger->log1("LocalPlayer::~LocalPlayer"); - config.removeListener("showownname", this); - config.removeListener("targetDeadPlayers", this); + config.removeListeners(this); serverConfig.removeListener("enableBuggyServers", this); - config.removeListener("syncPlayerMove", this); - config.removeListener("drawPath", this); - config.removeListener("serverAttack", this); - config.removeListener("attackMoving", this); - config.removeListener("showJobExp", this); - config.removeListener("enableAdvert", this); - config.removeListener("tradebot", this); - config.removeListener("targetOnlyReachable", this); delete mAwayDialog; mAwayDialog = nullptr; |