summaryrefslogtreecommitdiff
path: root/src/net/manaserv/charhandler.cpp
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/charhandler.cpp
parentc856deaf022cddae25efc4878ae9ceaf862b0a22 (diff)
downloadmana-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.gz
mana-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.bz2
mana-3483d51f703bc2ce2ebf71335225bb6e8c9db99c.tar.xz
mana-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/charhandler.cpp')
-rw-r--r--src/net/manaserv/charhandler.cpp7
1 files changed, 5 insertions, 2 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.");