summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 08:00:49 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 08:00:49 +0000
commitd9b11c20d5d0313e9257f054a6e3a63989c7bc71 (patch)
treef411de0718492f6b9fe66052d7bc4e157fd2480f /src/gui/skill.cpp
parentc0259002a1ac7529212492a1c942a6c901ccfa96 (diff)
downloadmana-d9b11c20d5d0313e9257f054a6e3a63989c7bc71.tar.gz
mana-d9b11c20d5d0313e9257f054a6e3a63989c7bc71.tar.bz2
mana-d9b11c20d5d0313e9257f054a6e3a63989c7bc71.tar.xz
mana-d9b11c20d5d0313e9257f054a6e3a63989c7bc71.zip
Updated dev-cpp project file to last changes, and wrong names fixes.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index a82b5c6a..5b065e47 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -166,8 +166,8 @@ std::string SkillDialog::getElementAt(int i)
char tmp[128];
sprintf(tmp, "%s Lv: %i Sp: %i",
skill_db[skillList[i]->id],
- skillList[i]->lvl,
- skillList[i]->mp);
+ skillList[i]->lv,
+ skillList[i]->sp);
return tmp;
}
return "";
@@ -188,8 +188,8 @@ void SkillDialog::addSkill(int id, int lvl, int mp)
printf("%i\n", id);
SKILL *tmp = new SKILL();
tmp->id = id;
- tmp->lvl = lvl;
- tmp->mp = mp;
+ tmp->lv = lvl;
+ tmp->sp = mp;
skillList.push_back(tmp);
}
@@ -197,8 +197,8 @@ void SkillDialog::setSkill(int id, int lvl, int mp)
{
for (unsigned int i = 0; i < skillList.size(); i++) {
if (skillList[i]->id == id) {
- skillList[i]->lvl = lvl;
- skillList[i]->mp = mp;
+ skillList[i]->lv = lvl;
+ skillList[i]->sp = mp;
}
}
}