diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-19 12:27:11 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-19 12:27:11 +0000 |
commit | 4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019 (patch) | |
tree | 9e0a31b30f08b5d54444c74527f5ce1a3bdfb5d6 /src/engine.cpp | |
parent | 7a92c4c076cefc2463347190f50b9bddf8d4ef6b (diff) | |
download | mana-4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019.tar.gz mana-4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019.tar.bz2 mana-4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019.tar.xz mana-4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019.zip |
Improving hair management
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 417bbb92..d1feacf2 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -394,9 +394,9 @@ void Engine::draw() being->text_x - 64, being->text_y - 80); } - if (being->hair_color <= 10) { - int hf = being->hair_color - 1 + 10 * (dir + 4 * - (being->hair_style - 1)); + if (being->getHairColor() <= 10) { + int hf = being->getHairColor() - 1 + 10 * (dir + 4 * + (being->getHairStyle() - 1)); hairset->spriteset[hf]->draw(screen, being->text_x - 2 + 2 * hairtable[pf][dir][0], @@ -433,7 +433,7 @@ void Engine::draw() being->text_x + 30, being->text_y + 40); } else { - monsterset[being->job - 1002]->spriteset[dir + 4 * mf]->draw( + monsterset[being->job-1002]->spriteset[dir + 4 * mf]->draw( screen, being->text_x + 30, being->text_y + 40); } @@ -446,7 +446,7 @@ void Engine::draw() } } } - + beingIterator++; // nodes are ordered so if the next being y is > then the |