summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 13:51:37 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 13:51:37 +0000
commite846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c (patch)
tree8feb8b51d731057412a59aeddbbe83b75b09912a /src/gui/skill.cpp
parent3bfcee0d9c033a46fe1b13795d89909c8fb6a239 (diff)
downloadmana-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.gz
mana-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.bz2
mana-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.xz
mana-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.zip
Completed transition to use MessageOut.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 5b065e47..0059ec25 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -31,7 +31,9 @@
#include "../playerinfo.h"
+#include "../net/messageout.h"
#include "../net/network.h"
+#include "../net/protocol.h"
char *skill_db[] = {
// 0-99
@@ -124,8 +126,9 @@ void SkillDialog::action(const std::string& eventId)
int selectedSkill = skillListBox->getSelected();
if (player_info->skillPoint > 0 && selectedSkill >= 0)
{
- writeWord(0, 0x0112);
- writeWord(2, skillList[selectedSkill]->id);
+ MessageOut outMsg;
+ outMsg.writeShort(CMSG_SKILL_LEVELUP_REQUEST);
+ outMsg.writeShort(skillList[selectedSkill]->id);
writeSet(4);
}
}