summaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
authoronkrot <vob999@bk.ru>2015-01-10 11:05:42 +0000
committerCraig Robbins <kde.psych@gmail.com>2015-01-13 23:48:56 +1000
commit0fd1ee03808ee8121e7b65e5c7c9ba19599d185e (patch)
tree6ce75f294a94cfdcb3dfaa45ef8f7510ca893074 /src/tile.cpp
parent5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7 (diff)
downloadminetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.gz
minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.bz2
minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.zip
Performance fixes.
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index b20aec54a..560dcddb8 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -213,7 +213,7 @@ public:
// Try to use local texture instead if asked to
if(prefer_local){
- std::string path = getTexturePath(name.c_str());
+ std::string path = getTexturePath(name);
if(path != ""){
video::IImage *img2 = driver->createImageFromFile(path.c_str());
if(img2){
@@ -245,7 +245,7 @@ public:
return n->second;
}
video::IVideoDriver* driver = device->getVideoDriver();
- std::string path = getTexturePath(name.c_str());
+ std::string path = getTexturePath(name);
if(path == ""){
infostream<<"SourceImageCache::getOrLoad(): No path found for \""
<<name<<"\""<<std::endl;