summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-06-21 17:06:57 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-06-21 17:06:57 +0000
commite87c165b31b3bdb784f23fd7d1e6a795859aa24c (patch)
tree913263b303ff1019d8be92ade326a028c012db16 /src/player.cpp
parent46cf032fc0eea43743b86d9e05950dd7a65728b7 (diff)
downloadmana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.gz
mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.bz2
mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.tar.xz
mana-e87c165b31b3bdb784f23fd7d1e6a795859aa24c.zip
Added female players.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.cpp b/src/player.cpp
index c7e2d911..830c92aa 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -32,7 +32,7 @@
#include "gui/gui.h"
extern std::vector<Spriteset *> hairset;
-extern Spriteset *playerset;
+extern Spriteset *playerset[2];
extern std::vector<Spriteset *> weaponset;
extern Spriteset *equipmentset;
@@ -128,7 +128,7 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY)
unsigned char dir = 0;
while (!(mDirection & (1 << dir))) dir++;
- graphics->drawImage(playerset->get(frame + 18 * dir),
+ graphics->drawImage(playerset[mSex]->get(frame + 18 * dir),
px - 16, py - 32);
Item *item = mEquipment->getEquipment(3);