diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-10 20:59:34 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-10 20:59:34 +0000 |
commit | bb9810d704a2f81da41e99cd9a1b03593dbe3a1c (patch) | |
tree | 237a6a184397994f4f4d93db63100d4b4f1bbe18 /src/game.cpp | |
parent | 4b376c30487ba98ede708c5e219f4bc9d6a72951 (diff) | |
download | mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.gz mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.bz2 mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.xz mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.zip |
Adding player names and fixing emoticon position
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2b63c023..3def09f5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -575,11 +575,11 @@ void do_parse() { } fclose(file); */ -#ifdef __DEBUG +//#ifdef __DEBUG FILE *file = fopen("./docs/packet.list", "a"); fprintf(file, "%x\n", RFIFOW(0)); fclose(file); -#endif +//#endif // Parse packet based on their id switch (id) { case SMSG_LOGIN_SUCCESS: @@ -1488,6 +1488,12 @@ void do_parse() { break; } break; + // Get being name + case 0x0095: + being = find_node(RFIFOL(2)); + if (being) + strcpy(being->name, RFIFOP(6)); + break; // Manage non implemented packets default: logger.log("Unhandled packet: %x", id); |