summaryrefslogtreecommitdiff
path: root/src/char/int_mercenary.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-02 23:47:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commit40fa73e07e4afd1aea967be86aed0407e7e85de5 (patch)
tree4138aa06b37f47efeee9f7aef8781bca28a2840b /src/char/int_mercenary.c
parentec163f471d04ecf1566a53a0109073afde837407 (diff)
downloadhercules-40fa73e07e4afd1aea967be86aed0407e7e85de5.tar.gz
hercules-40fa73e07e4afd1aea967be86aed0407e7e85de5.tar.bz2
hercules-40fa73e07e4afd1aea967be86aed0407e7e85de5.tar.xz
hercules-40fa73e07e4afd1aea967be86aed0407e7e85de5.zip
Add prefix inter_mercenary_ to most functions in int_mercenary.c
Diffstat (limited to 'src/char/int_mercenary.c')
-rw-r--r--src/char/int_mercenary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/int_mercenary.c b/src/char/int_mercenary.c
index 1dffb656c..ff7f9fa1f 100644
--- a/src/char/int_mercenary.c
+++ b/src/char/int_mercenary.c
@@ -20,7 +20,7 @@
#include "../common/strlib.h"
#include "../common/utils.h"
-bool mercenary_owner_fromsql(int char_id, struct mmo_charstatus *status)
+bool inter_mercenary_owner_fromsql(int char_id, struct mmo_charstatus *status)
{
char* data;
@@ -48,7 +48,7 @@ bool mercenary_owner_fromsql(int char_id, struct mmo_charstatus *status)
return true;
}
-bool mercenary_owner_tosql(int char_id, struct mmo_charstatus *status)
+bool inter_mercenary_owner_tosql(int char_id, struct mmo_charstatus *status)
{
if( SQL_ERROR == SQL->Query(sql_handle, "REPLACE INTO `%s` (`char_id`, `merc_id`, `arch_calls`, `arch_faith`, `spear_calls`, `spear_faith`, `sword_calls`, `sword_faith`) VALUES ('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')",
mercenary_owner_db, char_id, status->mer_id, status->arch_calls, status->arch_faith, status->spear_calls, status->spear_faith, status->sword_calls, status->sword_faith) )
@@ -60,7 +60,7 @@ bool mercenary_owner_tosql(int char_id, struct mmo_charstatus *status)
return true;
}
-bool mercenary_owner_delete(int char_id)
+bool inter_mercenary_owner_delete(int char_id)
{
if( SQL_ERROR == SQL->Query(sql_handle, "DELETE FROM `%s` WHERE `char_id` = '%d'", mercenary_owner_db, char_id) )
Sql_ShowDebug(sql_handle);