From 7982a54c295a8aaf5b4c855a4face377ba189d39 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Thu, 18 Aug 2005 15:21:07 +0000 Subject: Updated reference to latest libxml, fixed a bug in updating skills, updated skill names database. --- src/game.cpp | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 4b3d78a1..c130870f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -843,29 +843,10 @@ void do_parse() if (in_size >= 2) { // Check if the received packet is complete while (in_size >= (len = get_packet_length(id = RFIFOW(0)))) { - // Add infos to log file and dump the latest received packet - char pkt_nfo[60]; - sprintf(pkt_nfo,"In-buffer size: %i Packet id: %x Packet length: %i", in_size, RFIFOW(0), len); - /* - log_hex("Packet", "Packet_ID", RFIFOW(0)); - log_int("Packet", "Packet_length", get_length(RFIFOW(0))); - log_int("Packet", "Packet_in_size", RFIFOW(2)); - log_int("Packet", "In_size", in_size); - FILE *file = fopen("packet.dump", "wb"); - for(int i=0;isetDestination( get_dest_x(RFIFOP(50)), - get_dest_y(RFIFOP(50))); + get_dest_y(RFIFOP(50)));*/ break; // NPC dialog @@ -1556,7 +1537,7 @@ void do_parse() if (skillDialog->hasSkill(skillId)) { skillDialog->setSkill(skillId, RFIFOW(4 + k * 37 + 6), - RFIFOW(4 + k * 37 + 36)); + RFIFOB(4 + k * 37 + 36)); } else { skillDialog->addSkill( -- cgit v1.2.3-70-g09d2