summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2015-04-16 11:09:09 -0400
committermekolat <mekolat@gmail.com>2015-04-20 22:45:26 -0400
commit056aef958fb762526ba119379d46d5c2f1dd200c (patch)
treeba605e7719650975b58a7d6aa844f592680c0a9d
parente6ee7b3f99935a594e6462472fdc9d075408da0f (diff)
downloadtmwa-056aef958fb762526ba119379d46d5c2f1dd200c.tar.gz
tmwa-056aef958fb762526ba119379d46d5c2f1dd200c.tar.bz2
tmwa-056aef958fb762526ba119379d46d5c2f1dd200c.tar.xz
tmwa-056aef958fb762526ba119379d46d5c2f1dd200c.zip
change sex without disconnecting
-rw-r--r--src/map/chrif.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp
index bf4ae4e..ec008b3 100644
--- a/src/map/chrif.cpp
+++ b/src/map/chrif.cpp
@@ -615,9 +615,7 @@ void chrif_changedsex(Session *, const Packet_Fixed<0x2b0d>& fixed)
chrif_save(sd);
sd->login_id1++; // change identify, because if player come back in char within the 5 seconds, he can change its characters
// do same modify in login-server for the account, but no in char-server (it ask again login_id1 to login, and don't remember it)
- clif_displaymessage(sd->sess,
- "Your sex has been changed (need disconexion by the server)..."_s);
- clif_setwaitclose(sd->sess); // forced to disconnect for the change
+ clif_fixpcpos(sd); // use clif_set0078_main_1d8 to send new sex to the client
}
}
else