summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-12 12:39:54 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-12 12:39:54 +0000
commitd19be6ed8fda63a226eed6b4adf993abe90bbbfe (patch)
tree2d1475baa3f6ee282defc4d2cf6655d1682067e2 /src/map/map.c
parent2658339a3679ff5e495adf83d59136d20ed82d66 (diff)
downloadhercules-d19be6ed8fda63a226eed6b4adf993abe90bbbfe.tar.gz
hercules-d19be6ed8fda63a226eed6b4adf993abe90bbbfe.tar.bz2
hercules-d19be6ed8fda63a226eed6b4adf993abe90bbbfe.tar.xz
hercules-d19be6ed8fda63a226eed6b4adf993abe90bbbfe.zip
* Fixed Status Recovery dealing too short blind time on undead mobs
* Fixed mobs not affected by Blind status * Added an invalid id check check in map_id2sd * Added sd check in clif_send git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1226 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index ae9933b11..223e82372 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1576,7 +1576,9 @@ struct map_session_data * map_id2sd(int id) {
return NULL;
*/
int i;
- struct map_session_data *sd=NULL;
+ struct map_session_data *sd;
+
+ if (id <= 0) return 0;
for(i = 0; i < fd_max; i++)
if (session[i] && (sd = (struct map_session_data*)session[i]->session_data) && sd->bl.id == id)
@@ -2927,7 +2929,7 @@ int inter_config_read(char *cfgName)
} else if(strcmpi(w1,"map_server_db")==0){
strcpy(map_server_db, w2);
} else if(strcmpi(w1,"use_sql_db")==0){
- if (strcmpi(w2,"yes")){db_use_sqldbs=0;} else if (strcmpi(w2,"no")){db_use_sqldbs=1;}
+ db_use_sqldbs = battle_config_switch(w2);
printf ("Using SQL dbs: %s\n",w2);
//Login Server SQL DB
} else if(strcmpi(w1,"login_server_ip")==0){