diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-12 14:21:02 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-12 14:21:02 +0000 |
commit | be57ed26ac11ed0bb696acb031df527e3edf3130 (patch) | |
tree | 7235600c074836b212efa36e875b16334fe76110 /src/login | |
parent | e4d1b04f83674a0c0d766b12f906c66473a3e69c (diff) | |
download | hercules-be57ed26ac11ed0bb696acb031df527e3edf3130.tar.gz hercules-be57ed26ac11ed0bb696acb031df527e3edf3130.tar.bz2 hercules-be57ed26ac11ed0bb696acb031df527e3edf3130.tar.xz hercules-be57ed26ac11ed0bb696acb031df527e3edf3130.zip |
- Moved the packet_len variable in login.c to the login parse case, since it's used nowhere else.
- timestamp check speed-up in showmsg.c
- Swapped the blank ShowMessage on server startup to a printf
- Homunculus intimacy will go back to 500 on evolution.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8719 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c index f76bd44cf..8d9afa5db 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -3057,7 +3057,6 @@ int parse_login(int fd) { unsigned char *p = (unsigned char *) &session[fd]->client_addr.sin_addr;
char ip[16];
long subnet_char_ip;
- int packet_len;
RFIFOHEAD(fd);
@@ -3098,7 +3097,8 @@ int parse_login(int fd) { case 0x277: // New login packet
case 0x64: // request client login
case 0x01dd: // request client login with encrypt
- packet_len = RFIFOREST(fd);
+ {
+ int packet_len = RFIFOREST(fd);
switch(RFIFOW(fd, 0)){
case 0x64:
@@ -3231,7 +3231,7 @@ int parse_login(int fd) { }
RFIFOSKIP(fd,packet_len);
break;
-
+ }
case 0x01db: // Sending request of the coding key
case 0x791a: // Sending request of the coding key (administration packet)
{
|