diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 14:55:46 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 14:55:46 +0000 |
commit | 95bb1b20d668fca8d42213ec718f3843ab95e04a (patch) | |
tree | a1936a258f172d92ee7390e8e59c93efbcd63fdd | |
parent | 3e83b793116c9a196ad0026b31094dd28389eddf (diff) | |
download | mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.gz mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.bz2 mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.tar.xz mana-95bb1b20d668fca8d42213ec718f3843ab95e04a.zip |
Use alpha layer for tiles (feedback performance)
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
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) { |