diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-19 14:31:01 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-19 14:31:01 +0000 |
commit | 5971c8892d819545607ea75edf79996460f71c46 (patch) | |
tree | 84e25aeee5a3fdb40466dcc29d894a8570be97e2 /src/login_sql | |
parent | 54620fe548004a87a9fdf3066a8f353061a6d8ee (diff) | |
download | hercules-5971c8892d819545607ea75edf79996460f71c46.tar.gz hercules-5971c8892d819545607ea75edf79996460f71c46.tar.bz2 hercules-5971c8892d819545607ea75edf79996460f71c46.tar.xz hercules-5971c8892d819545607ea75edf79996460f71c46.zip |
- Corrected Trim chars to block 'enter', as explained by the Ultra mage.
- When the client passes account version 0, the login server will set it to 1 now.
- Corrected the HP bar scaling when HP is above Short Max. It should display fine for any HP value now.
- Added a check when the mob's adelay is shorter than the amotion, in which case the adelay will be changed to the amotion value.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7742 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r-- | src/login_sql/login.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 9be95051a..059611979 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1569,6 +1569,7 @@ int parse_login(int fd) { }
account.version = RFIFOL(fd, 2);
+ if (!account.version) account.version = 1; //Force some version...
memcpy(account.userid,RFIFOP(fd, 6),NAME_LENGTH);
account.userid[23] = '\0';
memcpy(account.passwd,RFIFOP(fd, 30),NAME_LENGTH);
|