From 7593d6c71e2331c3e43c732db60ad03ee4d5385d Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 9 Mar 2006 03:21:39 +0000 Subject: Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff. --- src/gui/playerbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/playerbox.cpp') 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)->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)->drawImage( - hairset[hairStyle]->spriteset[hf], 35, 7); + hairset[hairStyle]->get(hf), 35, 7); } } } -- cgit v1.2.3-70-g09d2