diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
commit | 45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch) | |
tree | 698fe787014ca277f5b23144136d4e5417c6b444 /src/net/eathena | |
parent | 273b79cf4f52c846508f3493727e34b1811ecfd5 (diff) | |
download | mv-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz mv-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2 mv-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz mv-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip |
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/charserverhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 94530f407..835360c64 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -301,7 +301,7 @@ void CharServerHandler::chooseCharacter(Net::Character *const character) } void CharServerHandler::newCharacter(const std::string &name, const int slot, - const Gender::Type gender, + const GenderT gender, const int hairstyle, const int hairColor, const unsigned char race, const uint16_t look, diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h index 64968cee4..60f753967 100644 --- a/src/net/eathena/charserverhandler.h +++ b/src/net/eathena/charserverhandler.h @@ -47,7 +47,7 @@ class CharServerHandler final : public MessageHandler, void newCharacter(const std::string &name, const int slot, - const Gender::Type gender, + const GenderT gender, const int hairstyle, const int hairColor, const unsigned char race, diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 85609581b..bffe95b94 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -399,7 +399,7 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const BeingId accountId = msg.readBeingId("account id"); const int charId = msg.readInt32("char id"); const int online = msg.readInt32("flag"); - const Gender::Type gender = Being::intToGender(static_cast<uint8_t>( + const GenderT gender = Being::intToGender(static_cast<uint8_t>( msg.readInt16("sex"))); msg.readInt16("hair"); msg.readInt16("hair color"); |