From cc716ca00420c23bdb02831f8fc205d4588e1f75 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 9 Apr 2007 00:46:55 +0000 Subject: * Played around with MinGW a bit today... - adjusted code so that it handles mingw-specific compatibility problems - adjusted the makefile, mingw is not a subset of cygwin * As an experiment Corrected many /W4 warnings on the txt login server git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10192 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/login/login.h') diff --git a/src/login/login.h b/src/login/login.h index 7845d3126..f5a7856b3 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -4,8 +4,6 @@ #ifndef _LOGIN_H_ #define _LOGIN_H_ -#define MAX_SERVERS 30 - #define LOGIN_CONF_NAME "conf/login_athena.conf" #define LAN_CONF_NAME "conf/subnet_athena.conf" #define PASSWORDENC 3 // A definition is given when making an encryption password correspond. @@ -13,31 +11,29 @@ // It is made into 2 at the time of passwordencrypt2. // When it is made 3, it corresponds to both. -extern int login_port; +extern uint16 login_port; + struct mmo_account { int version; char userid[NAME_LENGTH]; char passwd[NAME_LENGTH]; int passwdenc; - long account_id; + uint32 account_id; long login_id1; long login_id2; long char_id; char lastlogin[24]; - int sex; + char sex; }; struct mmo_char_server { char name[20]; uint32 ip; uint16 port; - int users; - int maintenance; - int new_; + uint16 users; // user count on this server + uint16 maintenance; // in maintenance mode? + uint16 new_; // allows creating new chars? }; -extern struct mmo_char_server server[MAX_SERVERS]; -extern int server_fd[MAX_SERVERS]; - #endif /* _LOGIN_H_ */ -- cgit v1.2.3-60-g2f50