summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-02 17:56:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 17:56:13 +0300
commit1003a7a74f72f17f59f4a74eacf95a1744a64506 (patch)
tree59e3dfae9c470426dea48b4b3aa221c40800072e /src/net
parentce2e90b35291abe32c47e21569a58e9eb22cc87b (diff)
downloadmv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.gz
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.bz2
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.tar.xz
mv-1003a7a74f72f17f59f4a74eacf95a1744a64506.zip
Move death dialog showing from playerhandler.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/playerhandler.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 940b629d4..2835b3def 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -41,11 +41,8 @@
#include "resources/notifytypes.h"
-#include "resources/db/deaddb.h"
-
#include "resources/map/map.h"
-#include "listeners/playerpostdeathlistener.h"
#include "listeners/weightlistener.h"
#include "net/messagein.h"
@@ -65,7 +62,6 @@ static const int MAP_TELEPORT_SCROLL_DISTANCE = 8;
namespace
{
WeightListener weightListener;
- PlayerPostDeathListener postDeathListener;
} // anonymous namespace
namespace Ea
@@ -186,23 +182,6 @@ void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg)
}
playerHandler->setStat(type, value, -1, true);
-
- if (PlayerInfo::getAttribute(Attributes::HP) == 0 && !deathNotice)
- {
- // TRANSLATORS: message header
- deathNotice = new OkDialog(_("Message"),
- DeadDB::getRandomString(),
- // TRANSLATORS: ok dialog button
- _("Revive"),
- DialogType::OK,
- false, true, nullptr, 260);
- deathNotice->addActionListener(&postDeathListener);
- if (localPlayer->getCurrentAction() != BeingAction::DEAD)
- {
- localPlayer->setAction(BeingAction::DEAD, 0);
- localPlayer->recalcSpritesOrder();
- }
- }
BLOCK_END("PlayerHandler::processPlayerStatUpdate1")
}