summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-08 17:47:52 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-08 17:47:52 -0600
commit8388b59793ed88f0a67b2cee1dce9865ae46c1d5 (patch)
tree96edceedbfc20c98495bd223a322cd2a195eee56 /src/gui/skilldialog.cpp
parent9fbc19f640e326a2a55b6d64e15b687e56d15fc7 (diff)
downloadmana-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.gz
mana-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.bz2
mana-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.xz
mana-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.zip
Remove parsing of the fixed flag from skills files
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 0b964cc8..f00982cd 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -176,7 +176,7 @@ void SkillDialog::update()
}
}
-void SkillDialog::loadSkills(const std::string &file, bool fixed)
+void SkillDialog::loadSkills(const std::string &file)
{
// TODO: mTabs->clear();
delete_all(mSkills);
@@ -194,7 +194,6 @@ void SkillDialog::loadSkills(const std::string &file, bool fixed)
std::string setName;
ScrollArea *scroll;
VertContainer *container;
- std::string fixedDef = toString(fixed);
for_each_xml_child_node(set, root)
{
@@ -218,13 +217,12 @@ void SkillDialog::loadSkills(const std::string &file, bool fixed)
int id = atoi(XML::getProperty(node, "id", "-1").c_str());
std::string name = XML::getProperty(node, "name", strprintf(_("Skill %d"), id));
std::string icon = XML::getProperty(node, "icon", "");
- bool modifiable = !atoi(XML::getProperty(node, "fixed", fixedDef).c_str());
SkillInfo *skill = new SkillInfo;
skill->id = id;
skill->name = name;
skill->icon = icon;
- skill->modifiable = modifiable;
+ skill->modifiable = 0;
skill->display = new SkillEntry(skill);
container->add(skill->display);