diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-05-21 11:46:56 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-05-21 11:54:02 -0600 |
commit | 8c4c5a58c256cce7beb21b68c8a7d6b6ff5c4a3a (patch) | |
tree | a8a94b79eb799a076000e699e28c070a7fd8c2be | |
parent | c6168a565b14887f1ab7fdba9e0e5cd0a9f1ca1a (diff) | |
download | mana-8c4c5a58c256cce7beb21b68c8a7d6b6ff5c4a3a.tar.gz mana-8c4c5a58c256cce7beb21b68c8a7d6b6ff5c4a3a.tar.bz2 mana-8c4c5a58c256cce7beb21b68c8a7d6b6ff5c4a3a.tar.xz mana-8c4c5a58c256cce7beb21b68c8a7d6b6ff5c4a3a.zip |
Fix handling sprite alpha
This way, it's only set to the overlay alpha while drawing the overlay. Fixes
PlayerBox rendering.
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index 0c23aeb4..b308c775 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -143,7 +143,6 @@ void MapLayer::draw(Graphics *graphics, int startX, int startY, { while (ai != actors.end() && (*ai)->getPixelY() <= y * 32) { - (*ai)->setAlpha(1.0f); (*ai)->draw(graphics, -scrollX, -scrollY); ai++; } @@ -167,7 +166,6 @@ void MapLayer::draw(Graphics *graphics, int startX, int startY, { while (ai != actors.end()) { - (*ai)->setAlpha(1.0f); (*ai)->draw(graphics, -scrollX, -scrollY); ai++; } @@ -341,6 +339,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) { actor->setAlpha(0.3f); actor->draw(graphics, -scrollX, -scrollY); + actor->setAlpha(1.0f); } } ai++; |