Fixed a mistake in r10919 messing up logged values (bugreport:167)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11357 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
4026ba7ec1
commit
fe1db10bcc
@ -10,6 +10,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
|||||||
- Updated Field Manual and Bubble Gum in the itemdb.txt file.
|
- Updated Field Manual and Bubble Gum in the itemdb.txt file.
|
||||||
- As L0ne Wolf reported to me and based on Doddler information, the Bubble Gum
|
- As L0ne Wolf reported to me and based on Doddler information, the Bubble Gum
|
||||||
only do a second try of the item drop, and it don't increase the drop rates.
|
only do a second try of the item drop, and it don't increase the drop rates.
|
||||||
|
* Fixed a mistake in r10919 messing up logged values (bugreport:167)
|
||||||
* Added code that compacts the vending list after a purchase; fixes
|
* Added code that compacts the vending list after a purchase; fixes
|
||||||
the problem with empty positions appearing in the list (bugreport:168)
|
the problem with empty positions appearing in the list (bugreport:168)
|
||||||
* Corrected Icewall skill to be closer to official behavior
|
* Corrected Icewall skill to be closer to official behavior
|
||||||
|
@ -70,7 +70,7 @@ int log_branch(struct map_session_data *sd)
|
|||||||
{
|
{
|
||||||
SqlStmt* stmt;
|
SqlStmt* stmt;
|
||||||
stmt = SqlStmt_Malloc(logmysql_handle);
|
stmt = SqlStmt_Malloc(logmysql_handle);
|
||||||
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`branch_date`, `account_id`, `char_id`, `char_name`, `map`) VALUES (NOW(), '%d', '%d', ?, '%s')", log_config.log_branch_db, sd->status.account_id, sd->status.char_id, sd->status.name, mapindex_id2name(sd->mapindex))
|
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`branch_date`, `account_id`, `char_id`, `char_name`, `map`) VALUES (NOW(), '%d', '%d', ?, '%s')", log_config.log_branch_db, sd->status.account_id, sd->status.char_id, mapindex_id2name(sd->mapindex) )
|
||||||
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
||||||
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
||||||
{
|
{
|
||||||
@ -296,7 +296,7 @@ int log_atcommand(struct map_session_data* sd, const char* message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
stmt = SqlStmt_Malloc(logmysql_handle);
|
stmt = SqlStmt_Malloc(logmysql_handle);
|
||||||
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`atcommand_date`, `account_id`, `char_id`, `char_name`, `map`, `command`) VALUES (NOW(), '%d', '%d', ?, '%s', ?)", log_config.log_gm_db, sd->status.account_id, sd->status.char_id, sd->status.name, mapindex_id2name(sd->mapindex), message)
|
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`atcommand_date`, `account_id`, `char_id`, `char_name`, `map`, `command`) VALUES (NOW(), '%d', '%d', ?, '%s', ?)", log_config.log_gm_db, sd->status.account_id, sd->status.char_id, mapindex_id2name(sd->mapindex) )
|
||||||
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
||||||
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, (char*)message, safestrnlen(message, 255))
|
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, (char*)message, safestrnlen(message, 255))
|
||||||
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
||||||
@ -334,7 +334,7 @@ int log_npc(struct map_session_data* sd, const char* message)
|
|||||||
{
|
{
|
||||||
SqlStmt* stmt;
|
SqlStmt* stmt;
|
||||||
stmt = SqlStmt_Malloc(logmysql_handle);
|
stmt = SqlStmt_Malloc(logmysql_handle);
|
||||||
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`npc_date`, `account_id`, `char_id`, `char_name`, `map`, `mes`) VALUES (NOW(), '%d', '%d', ?, '%s', ?)", log_config.log_npc_db, sd->status.account_id, sd->status.char_id, sd->status.name, mapindex_id2name(sd->mapindex), message)
|
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "INSERT DELAYED INTO `%s` (`npc_date`, `account_id`, `char_id`, `char_name`, `map`, `mes`) VALUES (NOW(), '%d', '%d', ?, '%s', ?)", log_config.log_npc_db, sd->status.account_id, sd->status.char_id, mapindex_id2name(sd->mapindex) )
|
||||||
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, sd->status.name, strnlen(sd->status.name, NAME_LENGTH))
|
||||||
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, (char*)message, safestrnlen(message, 255))
|
|| SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, (char*)message, safestrnlen(message, 255))
|
||||||
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
|| SQL_SUCCESS != SqlStmt_Execute(stmt) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user