summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-19 23:26:56 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-19 23:26:56 +0300
commitf5f9c8f798123b21897f73fd47c8e5f0600c0c35 (patch)
treed2f9314e779fa64fb834aa530de2190423722e86 /src/resources/mapreader.cpp
parent83d4185ef116b1813742399dbf40547a4c9f7216 (diff)
downloadmanaverse-f5f9c8f798123b21897f73fd47c8e5f0600c0c35.tar.gz
manaverse-f5f9c8f798123b21897f73fd47c8e5f0600c0c35.tar.bz2
manaverse-f5f9c8f798123b21897f73fd47c8e5f0600c0c35.tar.xz
manaverse-f5f9c8f798123b21897f73fd47c8e5f0600c0c35.zip
Small optimisation.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 3bd77315a..b80bc960f 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -393,7 +393,7 @@ void MapReader::readProperties(xmlNodePtr node, Properties *props)
}
}
-static void setTile(Map *map, MapLayer *layer, int x, int y, int gid)
+inline static void setTile(Map *map, MapLayer *layer, int x, int y, int gid)
{
const Tileset * const set = map->getTilesetWithGid(gid);
if (layer)