diff options
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/char_sql/int_mail.c | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index b56589762..a35430c4a 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/10/23 + * Fixed a compilation bug on linux (FALSE -> false) [Zephyrus] 2007/10/22 * Heat isn't supposed to consume SP when used against players [Playtester] - please report if it still consumes SP in pvp diff --git a/src/char_sql/int_mail.c b/src/char_sql/int_mail.c index 7c6b4afe5..ebcb1df32 100644 --- a/src/char_sql/int_mail.c +++ b/src/char_sql/int_mail.c @@ -76,7 +76,7 @@ int mail_fromsql(int char_id, struct mail_data *md) md->full = ( Sql_NumRows(sql_handle) > MAIL_MAX_INBOX ); md->amount = i; - md->changed = FALSE; + md->changed = false; Sql_FreeResult(sql_handle); md->unchecked = 0; @@ -107,7 +107,7 @@ int mail_savemessage(struct mail_message *msg) int j; char esc_send_name[NAME_LENGTH*2+1], esc_dest_name[NAME_LENGTH*2+1]; char esc_title[MAIL_TITLE_LENGTH*2+1], esc_body[MAIL_BODY_LENGTH*2+1]; - + if (!msg) return 0; @@ -238,7 +238,7 @@ int mapif_parse_Mail_read(int fd) mail_id = RFIFOL(fd,2); if( SQL_ERROR == Sql_Query(sql_handle, "UPDATE `%s` SET `read_flag` = '2' WHERE `id` = '%d'", mail_db, mail_id) ) Sql_ShowDebug(sql_handle); - + return 0; } @@ -322,7 +322,7 @@ int mapif_Mail_delete(int fd, int char_id, int mail_id) WFIFOL(fd,6) = mail_id; WFIFOW(fd,10) = flag; WFIFOSET(fd,12); - + return 0; } @@ -413,7 +413,7 @@ int mapif_parse_Mail_send(int fd) { // Try to find the Dest Char by Name char esc_name[NAME_LENGTH*2+1]; - + Sql_EscapeStringLen(sql_handle, esc_name, msg->dest_name, strnlen(msg->dest_name, NAME_LENGTH)); if ( SQL_ERROR == Sql_Query(sql_handle, "SELECT `account_id`, `char_id` FROM `%s` WHERE `name` = '%s'", char_db, esc_name) ) Sql_ShowDebug(sql_handle); |