summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 15:34:18 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 15:34:18 +0000
commit8bb15a3eb1653dad66aec5205163a2a4bfa2f149 (patch)
tree589eca20ba6d31dc41a318e8344ca62dea6e7bb6 /src/login_sql/login.c
parent64f4cc701fb78e585514eaa894dfd98cbbf224bf (diff)
downloadhercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.gz
hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.bz2
hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.tar.xz
hercules-8bb15a3eb1653dad66aec5205163a2a4bfa2f149.zip
- Corrected Aliza card's item_db line.
- Capped clif_heal's heal field (the argument received is int, but the packet field is short, meaning that if the heal is high enough, the client would receive a negative heal amount). - Some indentation fixes. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10165 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r--src/login_sql/login.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index cc50e560a..c3c5015b4 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -833,12 +833,12 @@ int parse_fromchar(int fd)
WFIFOHEAD(fd,51);
account_id = RFIFOL(fd,2); // speed up
for(i = 0; i < AUTH_FIFO_SIZE; i++) {
- if (auth_fifo[i].account_id == account_id &&
- auth_fifo[i].login_id1 == RFIFOL(fd,6) &&
- auth_fifo[i].login_id2 == RFIFOL(fd,10) && // relate to the versions higher than 18
- auth_fifo[i].sex == RFIFOB(fd,14) &&
- auth_fifo[i].ip == ntohl(RFIFOL(fd,15)) &&
- !auth_fifo[i].delflag)
+ if(auth_fifo[i].account_id == account_id &&
+ auth_fifo[i].login_id1 == RFIFOL(fd,6) &&
+ auth_fifo[i].login_id2 == RFIFOL(fd,10) && // relate to the versions higher than 18
+ auth_fifo[i].sex == RFIFOB(fd,14) &&
+ auth_fifo[i].ip == ntohl(RFIFOL(fd,15)) &&
+ !auth_fifo[i].delflag)
{
auth_fifo[i].delflag = 1;
break;