summaryrefslogtreecommitdiff
path: root/src/gui/playerbox.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
commit7593d6c71e2331c3e43c732db60ad03ee4d5385d (patch)
tree3ad242a957b6a500319d7bdae15149c553521ee4 /src/gui/playerbox.cpp
parent81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (diff)
downloadmana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.gz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.bz2
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.xz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.zip
Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff.
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r--src/gui/playerbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp
index e61cabde..34283b4c 100644
--- a/src/gui/playerbox.cpp
+++ b/src/gui/playerbox.cpp
@@ -90,16 +90,16 @@ void PlayerBox::draw(gcn::Graphics *graphics)
// Draw character
dynamic_cast<Graphics*>(graphics)->drawImage(
- playerset->spriteset[0], 23, 12);
+ playerset->get(0), 23, 12);
// Draw his hair
if (hairColor >= 0 && hairStyle >= 0 &&
hairColor < NR_HAIR_COLORS && hairStyle < NR_HAIR_STYLES)
{
int hf = 9 * hairColor;
- if (hf >= 0 && hf < (int)hairset[hairStyle]->spriteset.size()) {
+ if (hf >= 0 && hf < (int)hairset[hairStyle]->size()) {
dynamic_cast<Graphics*>(graphics)->drawImage(
- hairset[hairStyle]->spriteset[hf], 35, 7);
+ hairset[hairStyle]->get(hf), 35, 7);
}
}
}