summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/skill.cpp13
1 files changed, 1 insertions, 12 deletions
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(