summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-18 13:09:16 +0200
committerHaru <haru@dotalux.com>2015-09-25 12:55:36 +0200
commit1aea178ef7cdb76eda5600540b5fbd29fd54ff88 (patch)
tree855d4feafba212d7f36872c1b46814c1f1a85e75 /src/char
parente99bf73af31a8b1f09b9ce033c16832ee5cac51d (diff)
downloadhercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.gz
hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.bz2
hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.xz
hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.zip
More aggressive whitespace cleanup. Follow up to 51329e6
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char')
-rw-r--r--src/char/HPMchar.h1
-rw-r--r--src/char/char.c8
-rw-r--r--src/char/int_quest.h1
-rw-r--r--src/char/inter.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/char/HPMchar.h b/src/char/HPMchar.h
index 594bb7f00..e3e000ef3 100644
--- a/src/char/HPMchar.h
+++ b/src/char/HPMchar.h
@@ -22,4 +22,3 @@ void HPM_char_do_final(void);
void HPM_char_do_init(void);
#endif /* CHAR_HPMCHAR_H */
-
diff --git a/src/char/char.c b/src/char/char.c
index c54fedb8c..3cc8853a4 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2414,7 +2414,7 @@ void char_changesex(int account_id, int sex)
* Performs the necessary operations when changing a character's sex, such as
* correcting the job class and unequipping items, and propagating the
* information to the guild data.
- *
+ *
* @param sex The new sex (SEX_MALE or SEX_FEMALE).
* @param acc The character's account ID.
* @param char_id The character ID.
@@ -2483,7 +2483,7 @@ int char_parse_fromlogin_changesex_reply(int fd)
SQL->StmtBindColumn(stmt, 0, SQLDT_INT, &char_id, 0, NULL, NULL);
SQL->StmtBindColumn(stmt, 1, SQLDT_INT, &class_, 0, NULL, NULL);
SQL->StmtBindColumn(stmt, 2, SQLDT_INT, &guild_id, 0, NULL, NULL);
-
+
for (i = 0; i < MAX_CHARS && SQL_SUCCESS == SQL->StmtNextRow(stmt); ++i) {
char_change_sex_sub(sex, acc, char_id, class_, guild_id);
}
@@ -3455,7 +3455,7 @@ void char_ask_name_ack(int fd, int acc, const char* name, int type, int result)
* Changes a character's sex.
* The information is updated on database, and the character is kicked if it
* currently is online.
- *
+ *
* @param char_id The character's ID.
* @param sex The new sex.
* @retval 0 in case of success.
@@ -3479,7 +3479,7 @@ int char_changecharsex(int char_id, int sex)
SQL->GetData(inter->sql_handle, 1, &data, NULL); class_ = atoi(data);
SQL->GetData(inter->sql_handle, 2, &data, NULL); guild_id = atoi(data);
SQL->FreeResult(inter->sql_handle);
-
+
if (SQL_ERROR == SQL->Query(inter->sql_handle, "UPDATE `%s` SET `sex` = '%c' WHERE `char_id` = '%d'", char_db, sex == SEX_MALE ? 'M' : 'F', char_id)) {
Sql_ShowDebug(inter->sql_handle);
return 1;
diff --git a/src/char/int_quest.h b/src/char/int_quest.h
index c2393d103..442995826 100644
--- a/src/char/int_quest.h
+++ b/src/char/int_quest.h
@@ -20,4 +20,3 @@ void inter_quest_defaults(void);
HPShared struct inter_quest_interface *inter_quest;
#endif /* CHAR_INT_QUEST_H */
-
diff --git a/src/char/inter.c b/src/char/inter.c
index 548b24ee8..65048a9f9 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -953,7 +953,7 @@ int mapif_wis_message(struct WisData *wd)
wd->len = 0;
if (wd->len >= sizeof(wd->msg) - 1)
wd->len = sizeof(wd->msg) - 1;
-
+
WBUFW(buf, 0) = 0x3801;
WBUFW(buf, 2) = 56 +wd->len;
WBUFL(buf, 4) = wd->id;