diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-14 14:03:06 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-14 14:03:06 +0000 |
commit | 0e882b69855dab5ae0c50e52b3db8316c6054751 (patch) | |
tree | 81020725036353cacc2534c3dbd95535fc5b98e5 /src/login/login.h | |
parent | 6b405aa702e726f1eadcc3657c2da12f112afe0d (diff) | |
download | hercules-0e882b69855dab5ae0c50e52b3db8316c6054751.tar.gz hercules-0e882b69855dab5ae0c50e52b3db8316c6054751.tar.bz2 hercules-0e882b69855dab5ae0c50e52b3db8316c6054751.tar.xz hercules-0e882b69855dab5ae0c50e52b3db8316c6054751.zip |
* 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
Diffstat (limited to 'src/login/login.h')
-rw-r--r-- | src/login/login.h | 12 |
1 files changed, 9 insertions, 3 deletions
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; |