summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-02 11:58:44 -0300
committerpanikon <panikon@zoho.com>2014-07-02 11:58:44 -0300
commit1e492e343fa3581790503a96a847d717976e375f (patch)
treea7a5c036867c2d75ddfd3d09ec1d0560febf2356 /src/map
parent0c40a490928500aeb41c9c406ecbf5ec5253ebf5 (diff)
downloadhercules-1e492e343fa3581790503a96a847d717976e375f.tar.gz
hercules-1e492e343fa3581790503a96a847d717976e375f.tar.bz2
hercules-1e492e343fa3581790503a96a847d717976e375f.tar.xz
hercules-1e492e343fa3581790503a96a847d717976e375f.zip
Fixed issue that when players used [at]fakename when disguised their names wouldn't be updated for them
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 2acea5872..8f4eb5219 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7415,6 +7415,8 @@ ACMD(fakename){
{
sd->fakename[0] = '\0';
clif->charnameack(0, &sd->bl);
+ if( sd->disguise )
+ clif->charnameack(sd->fd, &sd->bl);
clif->message(sd->fd, msg_txt(1307)); // Returned to real name.
return true;
}
@@ -7431,6 +7433,8 @@ ACMD(fakename){
safestrncpy(sd->fakename, message, sizeof(sd->fakename));
clif->charnameack(0, &sd->bl);
+ if( sd->disguise ) // Another packet should be sent so the client updates the name for sd
+ clif->charnameack(sd->fd, &sd->bl);
clif->message(sd->fd, msg_txt(1310)); // Fake name enabled.
return true;