From 0e882b69855dab5ae0c50e52b3db8316c6054751 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 14 Jan 2009 14:03:06 +0000 Subject: * Added client login packets 0x01fa and 0x027c. * Other minor cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13449 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/login/login.h') diff --git a/src/login/login.h b/src/login/login.h index d9d37c344..d2191fc2c 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -4,7 +4,7 @@ #ifndef _LOGIN_H_ #define _LOGIN_H_ -#include "../common/mmo.h" // NAME_LENGTH +#include "../common/mmo.h" // NAME_LENGTH,SEX_* #define LOGIN_CONF_NAME "conf/login_athena.conf" #define LAN_CONF_NAME "conf/subnet_athena.conf" @@ -17,7 +17,7 @@ struct login_session_data { int account_id; long login_id1; long login_id2; - char sex; + char sex;// 'F','M','S' char userid[NAME_LENGTH]; char passwd[32+1]; // 23+1 for plaintext, 32+1 for md5-ed passwords @@ -27,7 +27,8 @@ struct login_session_data { char lastlogin[24]; uint8 level; - int version; + uint8 clienttype; + uint32 version; int fd; }; @@ -74,6 +75,11 @@ struct Login_Config { char account_engine[256]; // name of the engine to use (defaults to auto, for the first available engine) }; +#define sex_num2str(num) ( (num == SEX_FEMALE ) ? 'F' : (num == SEX_MALE ) ? 'M' : 'S' ) +#define sex_str2num(str) ( (str == 'F' ) ? SEX_FEMALE : (str == 'M' ) ? SEX_MALE : SEX_SERVER ) + +#define MAX_SERVERS 30 +extern struct mmo_char_server server[MAX_SERVERS]; extern struct Login_Config login_config; -- cgit v1.2.3-60-g2f50