diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 22:41:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 22:41:18 +0300 |
commit | bb0b0d183a4f777653df14f5e003b893e47a9e76 (patch) | |
tree | ff6b0c8038330e88dd7d16688048f208b7a5a5be /src/gui/popups | |
parent | 66c33ea3f5e82ae09b935f65d7183b4ffc8bb9b1 (diff) | |
download | mv-bb0b0d183a4f777653df14f5e003b893e47a9e76.tar.gz mv-bb0b0d183a4f777653df14f5e003b893e47a9e76.tar.bz2 mv-bb0b0d183a4f777653df14f5e003b893e47a9e76.tar.xz mv-bb0b0d183a4f777653df14f5e003b893e47a9e76.zip |
Add chat command /nuke. Also add it to player context menu.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 1caf50adb..59a67b7be 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2729,15 +2729,21 @@ void PopupMenu::showPlayerGMCommands() // TRANSLATORS: popup menu item // TRANSLATORS: revive player mBrowserBox->addRow("/alive 'NAME'", _("Revive")); - if (!legacy && mBeingId != BeingId_zero) + if (!legacy) { - mBrowserBox->addRow("##3---"); // TRANSLATORS: popup menu item - // TRANSLATORS: show menu - mBrowserBox->addRow("show", _("Show...")); - // TRANSLATORS: popup menu item - // TRANSLATORS: mute menu - mBrowserBox->addRow("mute", _("Mute...")); + // TRANSLATORS: nuke player + mBrowserBox->addRow("/nuke 'NAME'", _("Nuke")); + if (mBeingId != BeingId_zero) + { + mBrowserBox->addRow("##3---"); + // TRANSLATORS: popup menu item + // TRANSLATORS: show menu + mBrowserBox->addRow("show", _("Show...")); + // TRANSLATORS: popup menu item + // TRANSLATORS: mute menu + mBrowserBox->addRow("mute", _("Mute...")); + } } if (legacy) { |