diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-16 02:43:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-16 02:43:31 +0300 |
commit | cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b (patch) | |
tree | 5acc50addb37120aa7719e52a2fa0d451118fb74 /src/being.cpp | |
parent | 572c2e0048400388c71b962b74b9a443a0b076a0 (diff) | |
download | manaverse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.gz manaverse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.bz2 manaverse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.xz manaverse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.zip |
Add race name to status and debug windows.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp index 47a74c7b2..e1cb9b0ae 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -338,7 +338,15 @@ void Being::setSubtype(Uint16 subtype) // Prevent showing errors when sprite doesn't exist if (!ItemDB::exists(id)) + { id = -100; + setRaceName(_("Human")); + } + else + { + const ItemInfo &info = ItemDB::get(id); + setRaceName(info.getName()); + } setSprite(Net::getCharHandler()->baseSprite(), id); } |