~ubuntu-branches/ubuntu/vivid/manaplus/vivid

« back to all changes in this revision

Viewing changes to src/listeners/playerdeathlistener.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-09-30 18:10:18 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20140930181018-pb73a0ogw29tjv8k
Tags: 1.4.9.27-1
* New upstream release.
* Bump Standards-Version to 3.9.6 (no changes required).

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
{
46
46
    void action(const ActionEvent &event A_UNUSED)
47
47
    {
48
 
        if (Net::getPlayerHandler())
49
 
            Net::getPlayerHandler()->respawn();
 
48
        if (playerHandler)
 
49
            playerHandler->respawn();
50
50
        deathNotice = nullptr;
51
51
 
52
52
        DialogsManager::closeDialogs();