diff options
author | Bertram <bertram@cegetel.net> | 2009-09-23 00:31:57 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-09-23 00:31:57 +0200 |
commit | e9ca82e734da4e8e82854c8791a3f7e62d083a1d (patch) | |
tree | d6c244c9ae199abe1b1ff078e08bb2c4ef6da3cd /src/map.cpp | |
parent | 5aad04d3333f9a75b8eeea28802422d7c310304d (diff) | |
download | mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.gz mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.bz2 mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.xz mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.zip |
Fixed some glitches in Equipment and Inventory window, and made the code more logical...
Now, the setAlpha() function is called with less changing numbers
which can help increasing FPS a bit...
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 1a869e61..2176327f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -145,6 +145,7 @@ void MapLayer::draw(Graphics *graphics, int startX, int startY, { while (si != sprites.end() && (*si)->getPixelY() <= y * 32) { + (*si)->setAlpha(1.0f); (*si)->draw(graphics, -scrollX, -scrollY); si++; } @@ -167,6 +168,7 @@ void MapLayer::draw(Graphics *graphics, int startX, int startY, { while (si != sprites.end()) { + (*si)->setAlpha(1.0f); (*si)->draw(graphics, -scrollX, -scrollY); si++; } @@ -297,7 +299,6 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) { (*si)->setAlpha(0.3f); (*si)->draw(graphics, -scrollX, -scrollY); - (*si)->setAlpha(1.0f); } } si++; |