From 7a57cee0d153a4db1d82369aae9160e8ece9ba26 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 4 Mar 2005 16:34:02 +0000 Subject: A bunch of updates: - inventory fixes - equipment fixes - graphic updates (items and monsters) - weaponary system - fixed status window --- src/engine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/engine.cpp') 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); } -- cgit v1.2.3-70-g09d2