summaryrefslogtreecommitdiff
path: root/src/plugins/db2sql.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
commit0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3 (patch)
tree28a722e533422e2d05b662f533d311a88b4edb6a /src/plugins/db2sql.c
parent5b1d3c5ebcbeab9730f8f4603c769c090ca4c8d1 (diff)
downloadhercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.gz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.bz2
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.xz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.zip
Split use_sql_db into the three available: item_db, mob_db, mob_skill_db.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/plugins/db2sql.c')
-rw-r--r--src/plugins/db2sql.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c
index 8db4a006f..5cb8d52a2 100644
--- a/src/plugins/db2sql.c
+++ b/src/plugins/db2sql.c
@@ -49,7 +49,7 @@ int db2sql(char** str, const char* source, int line, int scriptopt) {
struct item_data *it = NULL;
unsigned char offset = 0;
#ifdef RENEWAL
- if( iMap->db_use_sqldbs ) offset = 1;
+ if( iMap->db_use_sql_item_db ) offset = 1;
#endif
if( (it = itemdb->exists(parse_dbrow(str,source,line,scriptopt))) ) {
/* renewal has the 'matk' and 'equip_level' is now 'equip_level_min', and there is a new 'equip_level_max' field */
@@ -69,7 +69,7 @@ int db2sql(char** str, const char* source, int line, int scriptopt) {
SqlStmt_ShowDebug(stmt);
else {
#ifdef RENEWAL
- if( iMap->db_use_sqldbs ) offset += 1;
+ if( iMap->db_use_sql_item_db ) offset += 1;
#endif
if( it->script ) trimbraces(str[19+offset]);
if ( SQL_SUCCESS != SQL->StmtBindParam(stmt, 2, SQLDT_STRING, it->script?str[19+offset]:"", it->script?strlen(str[19+offset]):0) )
@@ -98,8 +98,8 @@ int db2sql(char** str, const char* source, int line, int scriptopt) {
CPCMD(db2sql) {
- if( iMap->db_use_sqldbs ) {
- ShowInfo("db2sql: this should not be used with 'db_use_sqldbs' enabled, skipping...\n");
+ if( iMap->db_use_sql_item_db ) {
+ ShowInfo("db2sql: this should not be used with 'db_use_sql_item_db' enabled, skipping...\n");
return;
}