summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-09-30 12:11:01 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-09-30 12:11:01 +0000
commit4febad8f7333103dd4bbbcb426aea3fe05000ee7 (patch)
treefd749b43351d1d2d788c34e3d474d7b7ef182b66 /src/gui/char_server.cpp
parent6ad0010e3356664c43418e5aad584cddc5498451 (diff)
downloadmana-4febad8f7333103dd4bbbcb426aea3fe05000ee7.tar.gz
mana-4febad8f7333103dd4bbbcb426aea3fe05000ee7.tar.bz2
mana-4febad8f7333103dd4bbbcb426aea3fe05000ee7.tar.xz
mana-4febad8f7333103dd4bbbcb426aea3fe05000ee7.zip
*** empty log message ***
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index 827e725e..4fbb2267 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -75,8 +75,8 @@ void server_char_server() {
if(ret==SOCKET_ERROR) {
ok("Error", "Unable to connect to char server");
return;
- }
-
+ }
+
// Send login infos
WFIFOW(0) = net_w_value(0x0065);
WFIFOL(2) = net_l_value(account_ID);
@@ -90,11 +90,11 @@ void server_char_server() {
RFIFOSKIP(4);
while(in_size<3)flush();
-
+
if(RFIFOW(0)==0x006b) {
while(in_size<RFIFOW(2))flush();
n_character = (RFIFOW(2)-24)/106;
- char_info = (CHAR_SEL_INFO *)malloc(sizeof(CHAR_SEL_INFO)*n_character);
+ char_info = (CHAR_INFO *)malloc(sizeof(CHAR_INFO)*n_character);
for(int i=0;i<n_character;i++) {
char_info[i].id = RFIFOL(24+106*i);
strcpy(char_info[i].name, RFIFOP(24+106*i+74));
@@ -116,12 +116,12 @@ void server_char_server() {
}
state = CHAR_SELECT;
- log("Player", "name", char_info->name);
+ log("Player", "name", char_info->name);
log_hex("Char_Server_Packet", "Packet_ID", RFIFOW(0));
log_int("Char_Server_Packet", "Packet_length", RFIFOW(2));
-
- RFIFOSKIP(RFIFOW(2));
+
+ RFIFOSKIP(RFIFOW(2));
} else if(RFIFOW(0)==0x006c) {
switch(RFIFOB(2)) {
case 0: