summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 08:05:28 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 08:05:28 +0000
commitc535a97d4832b1ed485ec129f941aa89fa3fbd3d (patch)
tree567f1b5728e23c8830f8925ace0fa3ca39acfda7 /src/map/map.c
parente92404724e395fb51711a318f2fba530055fb4c8 (diff)
downloadhercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.gz
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.bz2
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.xz
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.zip
* IDE error.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5442 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 429c1b85a..3f2db8662 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -128,13 +128,6 @@ MYSQL charsql_handle;
MYSQL_RES* charsql_res;
MYSQL_ROW charsql_row;
-#ifdef MAPREGSQL
-// [zBuffer] SQL Mapreg
-MYSQL mapregsql_handle;
-MYSQL_RES* mapregsql_res ;
-MYSQL_ROW mapregsql_row;
-#endif
-
#endif /* not TXT_ONLY */
int lowest_gm_level = 1;
@@ -3539,26 +3532,6 @@ int map_sql_init(void){
ShowStatus ("connect success! (Login Server Connection)\n");
}
-#ifdef MAPREGSQL
- // [zBuffer] SQL Mapreg connection start
- ShowInfo("Connect Mapreg DB Server....\n");
- mysql_init(&mapregsql_handle);
- if(!mysql_real_connect(&mapregsql_handle, map_server_ip, map_server_id, map_server_pw,
- map_server_db ,map_server_port, (char *)NULL, 0)) {
- //pointer check
- ShowSQL("DB error - %s\n",mysql_error(&mapregsql_handle));
- exit(1);
- } else {
- ShowStatus ("Connect success! (Mapreg DB Connection)\n");
- if( strlen(default_codepage) > 0 ) {
- sprintf( tmp_sql, "SET NAMES %s", default_codepage );
- if (mysql_query(&mapregsql_handle, tmp_sql)) {
- ShowSQL("DB error - %s\n",mysql_error(&mapregsql_handle));
- ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
- }
- }
- }
-#endif
if(mail_server_enable) { // mail system [Valaris]
mysql_init(&mail_handle);
ShowInfo("Connecting to the Mail DB Server....\n");
@@ -3596,12 +3569,6 @@ int map_sql_close(void){
mysql_close(&lmysql_handle);
ShowStatus("Close Login DB Connection....\n");
-#ifdef MAPREGSQL
- // [zBuffer] SQL Mapreg connection stop
- mysql_close(&mapregsql_handle);
- ShowStatus("Close Mapreg DB Connection....\n");
-#endif
-
if (log_config.sql_logs)
//Updating this if each time there's a log_config addition is too much of a hassle. [Skotlex]
/*&& (log_config.branch || log_config.drop || log_config.mvpdrop ||