diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-03-04 16:34:02 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-03-04 16:34:02 +0000 |
commit | 7a57cee0d153a4db1d82369aae9160e8ece9ba26 (patch) | |
tree | a64fd35942c72d8eb1250effaaca0f4b82768cfc /src/engine.cpp | |
parent | 47ddb7669a56c32597510d8153a6aa156bb4a397 (diff) | |
download | mana-7a57cee0d153a4db1d82369aae9160e8ece9ba26.tar.gz mana-7a57cee0d153a4db1d82369aae9160e8ece9ba26.tar.bz2 mana-7a57cee0d153a4db1d82369aae9160e8ece9ba26.tar.xz mana-7a57cee0d153a4db1d82369aae9160e8ece9ba26.zip |
A bunch of updates:
- inventory fixes
- equipment fixes
- graphic updates (items and monsters)
- weaponary system
- fixed status window
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 9e0d6b62..7a37af25 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -335,7 +335,8 @@ void Engine::draw() int pf = being->frame + being->action; if (being->action == ATTACK) { - pf += 4 * being->weapon; + if(being->weapon > 0) + pf += 4 * (being->weapon - 1); } playerset->spriteset[4 * pf + dir]->draw(screen, @@ -389,11 +390,11 @@ void Engine::draw() int mf = being->frame + being->action; if (being->action == MONSTER_DEAD) { - monsterset->spriteset[sprnum + 12 * MONSTER_DEAD]->draw(screen, + monsterset->spriteset[sprnum + 16 * MONSTER_DEAD]->draw(screen, being->text_x + 30, being->text_y + 40); } else { - monsterset->spriteset[sprnum + 12 * mf]->draw(screen, + monsterset->spriteset[sprnum + 16 * mf]->draw(screen, being->text_x + 30, being->text_y + 40); } |