diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-08 17:47:52 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-08 17:47:52 -0600 |
commit | 8388b59793ed88f0a67b2cee1dce9865ae46c1d5 (patch) | |
tree | 96edceedbfc20c98495bd223a322cd2a195eee56 /src | |
parent | 9fbc19f640e326a2a55b6d64e15b687e56d15fc7 (diff) | |
download | mana-client-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.gz mana-client-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.bz2 mana-client-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.tar.xz mana-client-8388b59793ed88f0a67b2cee1dce9865ae46c1d5.zip |
Remove parsing of the fixed flag from skills files
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/skilldialog.cpp | 6 | ||||
-rw-r--r-- | src/gui/skilldialog.h | 2 |
2 files changed, 3 insertions, 5 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); diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 4a3f4f56..ce8f091a 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -73,7 +73,7 @@ class SkillDialog : public Window, public gcn::ActionListener */ void update(); - void loadSkills(const std::string &file, bool fixed = true); + void loadSkills(const std::string &file); void setModifiable(int id, bool modifiable); |