summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/skill.cpp13
2 files changed, 6 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fab8e7c..e06a3931 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-22 Eugenio Favalli <elvenprogrammer@gmail.com>
+
+ * src/gui/skill.cpp: Disabled use button in skill dialog since is still not
+ being used.
+
2005-08-20 Björn Steinbrink <B.Steinbrink@gmx.de>
* src/openglgraphics.cpp: Added some missing state changes and checks.
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index fc791cd5..5244b2f3 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -68,6 +68,7 @@ SkillDialog::SkillDialog():
pointsLabel = new gcn::Label("Skill Points:");
incButton = new Button("Up");
useButton = new Button("Use");
+ useButton->setEnabled(false);
closeButton = new Button("Close");
skillListBox->setEventId("skill");
@@ -129,18 +130,6 @@ void SkillDialog::action(const std::string& eventId)
WFIFOSET(4);
}
}
- else if (eventId == "use")
- {
- // Use skill
- int selectedSkill = skillListBox->getSelected();
- if (selectedSkill >= 0)
- {
- WFIFOW(0) = net_w_value(0x0113);
- WFIFOW(2) = 0;
- WFIFOW(4) = net_w_value(skillList[selectedSkill]->id);
- WFIFOL(6) = net_l_value(0);
- }
- }
else if (eventId == "skill")
{
incButton->setEnabled(