From ca96d6732c71834c6424dfeb4b6696c381f6c662 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 10 Apr 2008 19:07:00 +0000 Subject: 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 --- src/map/chrif.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/map') 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))) { -- cgit v1.2.3-70-g09d2