summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-12 14:55:46 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-12 14:55:46 +0000
commit95bb1b20d668fca8d42213ec718f3843ab95e04a (patch)
treea1936a258f172d92ee7390e8e59c93efbcd63fdd /src/resources/mapreader.cpp
parent3e83b793116c9a196ad0026b31094dd28389eddf (diff)
downloadmana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.gz
mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.bz2
mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.xz
mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.zip
Use alpha layer for tiles (feedback performance)
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index d5d30e79..da7364a4 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -135,7 +135,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map, int layer)
int w = map->getWidth();
int x = 0;
int y = 0;
-
+
// Load the tile data. Layers are assumed to be map size, with (0,0) as
// origin.
while (node != NULL)
@@ -250,7 +250,7 @@ Tileset* MapReader::readTileset(
sourceStr.erase(0, 3); // Remove "../"
ResourceManager *resman = ResourceManager::getInstance();
- Image* tilebmp = resman->getImage(sourceStr);
+ Image* tilebmp = resman->getImage(sourceStr, IMG_ALPHA);
if (tilebmp)
{