summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 0af61c219..6cfecae78 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -71,6 +71,7 @@
#include "net/chathandler.h"
#include "net/guildhandler.h"
#include "net/inventoryhandler.h"
+#include "net/mercenaryhandler.h"
#include "net/net.h"
#include "net/npchandler.h"
#include "net/partyhandler.h"
@@ -301,6 +302,13 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
break;
}
+ case ActorType::Mercenary:
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: fire mercenary
+ mBrowserBox->addRow("fire mercenary", _("Fire"));
+ mBrowserBox->addRow("##3---");
+ break;
+
case ActorType::Avatar:
case ActorType::Unknown:
case ActorType::FloorItem:
@@ -1828,6 +1836,10 @@ void PopupMenu::handleLink(const std::string &link,
if (chat)
chatHandler->joinChat(chat, "");
}
+ else if (link == "fire mercenary")
+ {
+ mercenaryHandler->fire();
+ }
else if (!link.compare(0, 10, "guild-pos-"))
{
if (localPlayer)