diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-09-06 22:01:03 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-09-06 22:01:03 +0200 |
commit | 3483d51f703bc2ce2ebf71335225bb6e8c9db99c (patch) | |
tree | 1ef5cf96ac058c4097a609bbce958a18b51c6570 /src/net/manaserv/charhandler.cpp | |
parent | c856deaf022cddae25efc4878ae9ceaf862b0a22 (diff) | |
download | mana-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.cpp | 7 |
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."); |