diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-10 19:07:00 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-10 19:07:00 +0000 |
commit | ca96d6732c71834c6424dfeb4b6696c381f6c662 (patch) | |
tree | 41f5bd448a296c46905d0049ea9415c91c670973 /src/map | |
parent | 35f3b96c8d060651befb7241f5de158a16283a8d (diff) | |
download | hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.gz hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.bz2 hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.xz hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.zip |
Modified the charservers to use a DBMap instead of a cyclic array for auth data.
Merged the auth fix from r12473 to TXT as well.
Removed the no-op from r12547.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12551 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chrif.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 27005e8f0..48bd65522 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -111,12 +111,14 @@ struct auth_node* chrif_search(int account_id) return (struct auth_node*)idb_get(auth_db, account_id); } -struct auth_node* chrif_auth_check(int account_id, int char_id, enum sd_state state) { +struct auth_node* chrif_auth_check(int account_id, int char_id, enum sd_state state) +{ struct auth_node *node = chrif_search(account_id); return (node && node->char_id == char_id && node->state == state)?node:NULL; } -bool chrif_auth_delete(int account_id, int char_id, enum sd_state state) { +bool chrif_auth_delete(int account_id, int char_id, enum sd_state state) +{ struct auth_node *node; if ((node=chrif_auth_check(account_id, char_id, state))) { |