summaryrefslogtreecommitdiff
path: root/src/net/manaserv/charhandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-28 00:48:05 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-29 07:41:08 +0100
commit3553f1e11f7f4478c4c64192f6455d528c7dffda (patch)
treee0dd6bf3c44718f7be5cad7803449cd6ebb625ff /src/net/manaserv/charhandler.cpp
parent411b54e993ea997e18be18fadd26ceab00c00fa3 (diff)
downloadmana-3553f1e11f7f4478c4c64192f6455d528c7dffda.tar.gz
mana-3553f1e11f7f4478c4c64192f6455d528c7dffda.tar.bz2
mana-3553f1e11f7f4478c4c64192f6455d528c7dffda.tar.xz
mana-3553f1e11f7f4478c4c64192f6455d528c7dffda.zip
Made the client handle the characters slots properly for Manaserv.
Reviewed-by: Crush.
Diffstat (limited to 'src/net/manaserv/charhandler.cpp')
-rw-r--r--src/net/manaserv/charhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp
index 6f2b4377..14bf51ed 100644
--- a/src/net/manaserv/charhandler.cpp
+++ b/src/net/manaserv/charhandler.cpp
@@ -167,6 +167,9 @@ void CharHandler::handleCharacterCreateResponse(Net::MessageIn &msg)
Attributes::getAttributeMinimum(),
Attributes::getAttributeMaximum());
break;
+ case CREATE_INVALID_SLOT:
+ errorMessage = _("Invalid slot number.");
+ break;
default:
errorMessage = _("Unknown error.");
break;
@@ -296,7 +299,7 @@ void CharHandler::chooseCharacter(Net::Character *character)
}
void CharHandler::newCharacter(const std::string &name,
- int /* slot */,
+ int slot,
bool gender,
int hairstyle,
int hairColor,
@@ -308,6 +311,7 @@ void CharHandler::newCharacter(const std::string &name,
msg.writeInt8(hairstyle);
msg.writeInt8(hairColor);
msg.writeInt8(gender);
+ msg.writeInt8(slot);
std::vector<int>::const_iterator it, it_end;
for (it = stats.begin(), it_end = stats.end(); it != it_end; it++)