diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-17 13:51:37 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-17 13:51:37 +0000 |
commit | e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c (patch) | |
tree | 8feb8b51d731057412a59aeddbbe83b75b09912a /src/gui/skill.cpp | |
parent | 3bfcee0d9c033a46fe1b13795d89909c8fb6a239 (diff) | |
download | mana-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.cpp | 7 |
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); } } |