summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-03-04 16:34:02 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-03-04 16:34:02 +0000
commit7a57cee0d153a4db1d82369aae9160e8ece9ba26 (patch)
treea64fd35942c72d8eb1250effaaca0f4b82768cfc /src/engine.cpp
parent47ddb7669a56c32597510d8153a6aa156bb4a397 (diff)
downloadmana-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.cpp7
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);
}