summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
commitbb9810d704a2f81da41e99cd9a1b03593dbe3a1c (patch)
tree237a6a184397994f4f4d93db63100d4b4f1bbe18 /src/game.cpp
parent4b376c30487ba98ede708c5e219f4bc9d6a72951 (diff)
downloadmana-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.cpp10
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);