summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-06 19:19:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-06 19:19:41 +0300
commitb968fe5e0797ffd9b0df2846f8422e972bc281e7 (patch)
tree3c3fc69c5072121fbdb1112b7004a6f02d41806e /src/gui
parentc2177ba1356a268d1edbec316870821fa0578fdd (diff)
downloadManaVerse-b968fe5e0797ffd9b0df2846f8422e972bc281e7.tar.gz
ManaVerse-b968fe5e0797ffd9b0df2846f8422e972bc281e7.tar.bz2
ManaVerse-b968fe5e0797ffd9b0df2846f8422e972bc281e7.tar.xz
ManaVerse-b968fe5e0797ffd9b0df2846f8422e972bc281e7.zip
remove support for skills for very old tmw servers.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/skilldialog.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index fc44fdf65..a13cff4cb 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -446,49 +446,6 @@ void SkillDialog::loadSkills()
if (!root || !xmlNameEqual(root, "skills"))
{
logger->log("Error loading skills");
-
-#ifdef MANASERV_SUPPORT
- if (Net::getNetworkType() != ServerInfo::MANASERV)
-#endif
- {
- SkillModel *const model = new SkillModel();
- if (!mDefaultModel)
- mDefaultModel = model;
-
- SkillInfo *const skill = new SkillInfo;
- skill->id = 1;
- // TRANSLATORS: skills dialog default skills tab
- skill->data->name = _("basic");
- skill->data->description.clear();
- // TRANSLATORS: skills dialog default skill name
- skill->data->dispName = _("basic, 1");
- skill->data->shortName = "bas";
- skill->data->setIcon("");
- skill->modifiable = true;
- skill->visible = true;
- skill->model = model;
- skill->update();
-
- model->addSkill(skill);
- mSkills[1] = skill;
-
- model->updateVisibilities();
-
- listbox = new SkillListBox(this, model);
- listbox->postInit();
- listbox->setActionEventId("sel");
- listbox->addActionListener(this);
- scroll = new ScrollArea(listbox, false);
- scroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
- scroll->setVerticalScrollPolicy(ScrollArea::SHOW_ALWAYS);
-
- tab = new SkillTab(this, "Skills", listbox);
- mDeleteTabs.push_back(tab);
-
- mTabs->addTab(tab, scroll);
-
- update();
- }
return;
}