summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-01-31 23:39:10 -0500
committerwushin <pasekei@gmail.com>2016-02-08 18:53:39 -0600
commitf889e025cc403ceb6f6276d66fdc367f544a0e82 (patch)
tree8e6469edce324c279c2cbd1a2581f750e6452cbd /src/login
parent8f33fc6192655ab7a4453a54616c911b19a8ded3 (diff)
downloadtmwa-f889e025cc403ceb6f6276d66fdc367f544a0e82.tar.gz
tmwa-f889e025cc403ceb6f6276d66fdc367f544a0e82.tar.bz2
tmwa-f889e025cc403ceb6f6276d66fdc367f544a0e82.tar.xz
tmwa-f889e025cc403ceb6f6276d66fdc367f544a0e82.zip
do not force logout after sex change
remove sex change roundtrip only unequip on gender incompatibility
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index a1c6650..c071429 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -1175,52 +1175,6 @@ void parse_fromchar(Session *s)
break;
}
- case 0x2727: // Change of sex (sex is reversed)
- {
- Packet_Fixed<0x2727> fixed;
- rv = recv_fpacket<0x2727, 7>(s, fixed);
- if (rv != RecvResult::Complete)
- break;
-
- {
- AccountId acc = fixed.account_id;
- for (AuthData& ad : auth_data)
- {
- if (ad.account_id == acc)
- {
- {
- SEX sex = fixed.sex;
- LOGIN_LOG("Char-server '%s': Sex change (account: %d, new sex %c, ip: %s).\n"_fmt,
- server[id].name, acc,
- sex_to_char(sex),
- ip);
- for (int j = 0; j < AUTH_FIFO_SIZE; j++)
- {
- if (auth_fifo[j].account_id == acc)
- auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification)
- }
- ad.sex = sex;
-
- Packet_Fixed<0x2723> fixed_23;
- fixed_23.account_id = acc;
- fixed_23.sex = sex;
-
- for (Session *ss : iter_char_sessions())
- {
- send_fpacket<0x2723, 7>(ss, fixed_23);
- }
- }
- goto x2727_out;
- }
- }
- LOGIN_LOG("Char-server '%s': Error of sex change (account: %d not found, sex would be reversed, ip: %s).\n"_fmt,
- server[id].name, acc, ip);
- x2727_out:
- ;
- }
- break;
- }
-
case 0x2728: // We receive account_reg2 from a char-server, and we send them to other char-servers.
{
Packet_Head<0x2728> head;