diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-06-21 17:06:57 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-06-21 17:06:57 +0000 |
commit | e87c165b31b3bdb784f23fd7d1e6a795859aa24c (patch) | |
tree | 913263b303ff1019d8be92ade326a028c012db16 /src/player.cpp | |
parent | 46cf032fc0eea43743b86d9e05950dd7a65728b7 (diff) | |
download | mana-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.cpp | 4 |
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); |