From 2ba2b398bdee802ed8c09819562de0afb34a1229 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Nov 2013 12:50:28 +0300 Subject: Add option for features.xml for allow/not allow follow. New option: allowFollow default value is 1. --- src/gui/popups/popupmenu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 4f6bb3372..a9ca65b36 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2574,8 +2574,11 @@ void PopupMenu::addPlayerRelation(const std::string &name) void PopupMenu::addFollow() { - // TRANSLATORS: popup menu item - mBrowserBox->addRow("follow", _("Follow")); + if (features.getBoolValue("allowFollow")) + { + // TRANSLATORS: popup menu item + mBrowserBox->addRow("follow", _("Follow")); + } // TRANSLATORS: popup menu item // TRANSLATORS: imitate player mBrowserBox->addRow("imitation", _("Imitation")); -- cgit v1.2.3-70-g09d2