diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-01 16:54:19 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-01 16:54:19 +0000 |
commit | ab431cdfab6e1842ff357c7f380cc74142601912 (patch) | |
tree | c10b04d93a14cfd1cfee98db562c5b6b00d9a2b9 /src/player.cpp | |
parent | 30aa32025d3406920330390b97001ade27e4343a (diff) | |
download | mana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.gz mana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.bz2 mana-ab431cdfab6e1842ff357c7f380cc74142601912.tar.xz mana-ab431cdfab6e1842ff357c7f380cc74142601912.zip |
Monster sound effect patch
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/player.cpp b/src/player.cpp index 533d88fa..a543b345 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -197,25 +197,11 @@ Player::setHairStyle(Uint16 style) void Player::setVisibleEquipment(Uint8 slot, int id) { - // Translate eAthena specific slot - Uint8 position = 0; - switch (slot) { - case 3: - position = BOTTOMCLOTHES_SPRITE; - break; - case 4: - position = HAT_SPRITE; - break; - case 5: - position = TOPCLOTHES_SPRITE; - break; - } - // id = 0 means unequip if (id == 0) { - delete mSprites[position]; - mSprites[position] = NULL; + delete mSprites[slot]; + mSprites[slot] = NULL; } else { @@ -233,8 +219,8 @@ Player::setVisibleEquipment(Uint8 slot, int id) equipmentSprite->setDirection(getSpriteDirection()); - delete mSprites[position]; - mSprites[position] = equipmentSprite; + delete mSprites[slot]; + mSprites[slot] = equipmentSprite; setAction(mAction); } |