diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-16 23:26:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-17 01:10:09 +0300 |
commit | 46dd47b2652d0928bc414b12685a89effe41e9ef (patch) | |
tree | 3bacd592cf08ff3eab1a3fae41688e8f4410047f /src/resources/avatardb.cpp | |
parent | 5a3724fea17bb1d1059207eb6c1d1e18dac20aa3 (diff) | |
download | manaverse-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.gz manaverse-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.bz2 manaverse-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.xz manaverse-46dd47b2652d0928bc414b12685a89effe41e9ef.zip |
improve npcdialog class.
allow set avatar size in avatars.xml.
Diffstat (limited to 'src/resources/avatardb.cpp')
-rw-r--r-- | src/resources/avatardb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/avatardb.cpp b/src/resources/avatardb.cpp index e18eff5c2..39b1184fb 100644 --- a/src/resources/avatardb.cpp +++ b/src/resources/avatardb.cpp @@ -73,6 +73,11 @@ void AvatarDB::load() currentInfo->setTargetOffsetY(XML::getProperty(avatarNode, "targetOffsetY", 0)); + currentInfo->setWidth(XML::getProperty(avatarNode, + "width", 0)); + currentInfo->setHeight(XML::getProperty(avatarNode, + "height", 0)); + SpriteDisplay display; // iterate <sprite>s and <sound>s |