From 5d1712c1483dd106d067256db5728c41e0676177 Mon Sep 17 00:00:00 2001 From: markzd Date: Tue, 8 Jan 2013 05:31:06 +0000 Subject: * Renaming variable name from nsiuid to unique_id for better understanding of its meaning, as requested on tid:69380. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17086 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/itemdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 810e85a4a..68baae1e1 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1261,7 +1261,7 @@ static int itemdb_read_sqldb(void) { * 2 set new value bypassing anything * 3/other return last value *------------------------------------------*/ -uint64 itemdb_nsiuid(int8 flag, int64 value) { +uint64 itemdb_unique_id(int8 flag, int64 value) { static uint64 item_uid = 0; if(flag) @@ -1280,18 +1280,18 @@ uint64 itemdb_nsiuid(int8 flag, int64 value) { int itemdb_uid_load(){ char * uid; - if (SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `value` FROM `interreg` WHERE `varname`='nsiuid'")) + if (SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `value` FROM `interreg` WHERE `varname`='unique_id'")) Sql_ShowDebug(mmysql_handle); if( SQL_SUCCESS != Sql_NextRow(mmysql_handle) ) { - ShowError("itemdb_uid_load: Unable to fetch nsiuid data\n"); + ShowError("itemdb_uid_load: Unable to fetch unique_id data\n"); Sql_FreeResult(mmysql_handle); return -1; } Sql_GetData(mmysql_handle, 0, &uid, NULL); - itemdb_nsiuid(1, (uint64)strtoull(uid, NULL, 10)); + itemdb_unique_id(1, (uint64)strtoull(uid, NULL, 10)); Sql_FreeResult(mmysql_handle); return 0; -- cgit v1.2.3-60-g2f50