diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-07 23:32:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-07 23:32:25 +0300 |
commit | 0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd (patch) | |
tree | 1e4c29a0de3697946060410e41910f88bcc5b979 /src/net/eathena/charserverrecv.cpp | |
parent | b6cd136e3edf9d5c0eaaef47118ff1a72d7b0c75 (diff) | |
download | mv-0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd.tar.gz mv-0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd.tar.bz2 mv-0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd.tar.xz mv-0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd.zip |
Add support for set new pincode.
Add pincode dialog and widget.
Diffstat (limited to 'src/net/eathena/charserverrecv.cpp')
-rw-r--r-- | src/net/eathena/charserverrecv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp index 3e69005e3..6d5fd63ca 100644 --- a/src/net/eathena/charserverrecv.cpp +++ b/src/net/eathena/charserverrecv.cpp @@ -347,7 +347,7 @@ void CharServerRecv::processChangeMapServer(Net::MessageIn &msg) void CharServerRecv::processPincodeStatus(Net::MessageIn &msg) { - pincodeManager.setSeed(msg.readInt32("pincode seed")); + pincodeManager.setSeed(msg.readUInt32("pincode seed")); pincodeManager.setAccountId(msg.readBeingId("account id")); const uint16_t state = CAST_U16(msg.readInt16("state")); switch (state) @@ -356,16 +356,16 @@ void CharServerRecv::processPincodeStatus(Net::MessageIn &msg) pincodeManager.pinOk(); break; case 1: // ask for pin - pincodeManager.askPin(); + pincodeManager.setState(PincodeState::Ask); break; case 2: // create new pin case 4: // create new pin? { - pincodeManager.createNewPin(); + pincodeManager.setState(PincodeState::Create); break; } case 3: // pin must be changed - pincodeManager.changePin(); + pincodeManager.setState(PincodeState::Change); break; case 8: // pincode was incorrect case 5: // client show error? |