From e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 17 Sep 2005 13:51:37 +0000 Subject: Completed transition to use MessageOut. --- src/gui/skill.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/skill.cpp') 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); } } -- cgit v1.2.3-70-g09d2