summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-09-06 22:01:03 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-09-06 22:01:03 +0200
commit3483d51f703bc2ce2ebf71335225bb6e8c9db99c (patch)
tree1ef5cf96ac058c4097a609bbce958a18b51c6570 /src/net/manaserv
parentc856deaf022cddae25efc4878ae9ceaf862b0a22 (diff)
downloadmana-client-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.gz
mana-client-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.bz2
mana-client-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.xz
mana-client-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.zip
Changed CREATE_ATTRIBUTES_EQUAL_TO_ZERO to OUT_OF_RANGE
to fit manaserv latest changes. Reviwed-by: Freeyorp, Thorbjorn.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/charhandler.cpp7
-rw-r--r--src/net/manaserv/protocol.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp
index 90909440..a4aaf21b 100644
--- a/src/net/manaserv/charhandler.cpp
+++ b/src/net/manaserv/charhandler.cpp
@@ -161,8 +161,11 @@ void CharHandler::handleCharacterCreateResponse(Net::MessageIn &msg)
case CREATE_ATTRIBUTES_TOO_LOW:
errorMessage = _("Character's stats are too low.");
break;
- case CREATE_ATTRIBUTES_EQUAL_TO_ZERO:
- errorMessage = _("One stat is zero.");
+ case CREATE_ATTRIBUTES_OUT_OF_RANGE:
+ errorMessage = strprintf( _("At least one stat"
+ "is out of the permitted range: (%u - %u)."),
+ Attributes::getAttributeMinimum(),
+ Attributes::getAttributeMaximum());
break;
default:
errorMessage = _("Unknown error.");
diff --git a/src/net/manaserv/protocol.h b/src/net/manaserv/protocol.h
index 571879c5..beb04b21 100644
--- a/src/net/manaserv/protocol.h
+++ b/src/net/manaserv/protocol.h
@@ -305,7 +305,7 @@ enum {
CREATE_INVALID_GENDER,
CREATE_ATTRIBUTES_TOO_HIGH,
CREATE_ATTRIBUTES_TOO_LOW,
- CREATE_ATTRIBUTES_EQUAL_TO_ZERO,
+ CREATE_ATTRIBUTES_OUT_OF_RANGE,
CREATE_EXISTS_NAME,
CREATE_TOO_MUCH_CHARACTERS
};