summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 05:49:10 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 05:49:10 +0000
commit6d970f21c13006074dea1bd173d9ff7f7af7c338 (patch)
tree0fba9f33681ca5549027fbb8aabeb02a44edd1f6 /src/map/clif.c
parente180648e8d399a7d367e557f3857753d54987b9b (diff)
downloadhercules-6d970f21c13006074dea1bd173d9ff7f7af7c338.tar.gz
hercules-6d970f21c13006074dea1bd173d9ff7f7af7c338.tar.bz2
hercules-6d970f21c13006074dea1bd173d9ff7f7af7c338.tar.xz
hercules-6d970f21c13006074dea1bd173d9ff7f7af7c338.zip
- Re-committed r16974/trunk/src/ (pid:161281).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16996 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6138f7a47..ec818e5d3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9243,6 +9243,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
clif_spawn(&sd->md->bl);
clif_mercenary_info(sd);
clif_mercenary_skillblock(sd);
+ status_calc_bl(&sd->md->bl, SCB_SPEED); // Mercenary mimic their master's speed on each map change
}
if( sd->ed ) {
@@ -9252,6 +9253,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
clif_elemental_updatestatus(sd,SP_HP);
clif_hpmeter_single(sd->fd,sd->ed->bl.id,sd->ed->battle_status.hp,sd->ed->battle_status.matk_max);
clif_elemental_updatestatus(sd,SP_SP);
+ status_calc_bl(&sd->ed->bl, SCB_SPEED); //Elemental mimic their master's speed on each map change
}
if(sd->state.connect_new) {
@@ -13967,6 +13969,10 @@ void clif_parse_Mail_send(int fd, struct map_session_data *sd)
safestrncpy(msg.send_name, sd->status.name, NAME_LENGTH);
safestrncpy(msg.dest_name, (char*)RFIFOP(fd,4), NAME_LENGTH);
safestrncpy(msg.title, (char*)RFIFOP(fd,28), MAIL_TITLE_LENGTH);
+
+ if (msg.title[0] == '\0') {
+ return; // Message has no length and somehow client verification was skipped.
+ }
if (body_len)
safestrncpy(msg.body, (char*)RFIFOP(fd,69), body_len + 1);