From e87c165b31b3bdb784f23fd7d1e6a795859aa24c Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Wed, 21 Jun 2006 17:06:57 +0000 Subject: Added female players. --- src/gui/playerbox.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/playerbox.cpp') diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index 8174ad77..d5c70ffe 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -35,14 +35,15 @@ #include "../utils/dtor.h" extern std::vector hairset; -extern Spriteset *playerset; +extern Spriteset *playerset[2]; int PlayerBox::instances = 0; ImageRect PlayerBox::background; -PlayerBox::PlayerBox(): +PlayerBox::PlayerBox(unsigned char sex): mHairColor(0), mHairStyle(0), + mSex(sex), mShowPlayer(false) { setBorderSize(2); @@ -90,7 +91,7 @@ void PlayerBox::draw(gcn::Graphics *graphics) // Draw character dynamic_cast(graphics)->drawImage( - playerset->get(0), 23, 12); + playerset[mSex]->get(0), 23, 12); // Draw his hair if (mHairColor >= 0 && mHairStyle >= 0 && -- cgit v1.2.3-70-g09d2