Add support for "textures/all" (and thus texture packs) to server
authordarkrose <lisa@ltmnet.com>
Sat, 23 Jun 2012 17:10:17 +0000 (03:10 +1000)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 20 Jul 2012 23:33:19 +0000 (02:33 +0300)
src/server.cpp

index f793c770b76596149bead205bde7a74d1fc960ad..b125bff8d7330c7f4cb04924bc5b25da1790d3ae 100644 (file)
@@ -3965,6 +3965,8 @@ void Server::fillMediaCache()
                paths.push_back(mod.path + DIR_DELIM + "sounds");
                paths.push_back(mod.path + DIR_DELIM + "media");
        }
+       std::string path_all = "textures";
+       paths.push_back(path_all + DIR_DELIM + "all");
        
        // Collect media file information from paths into cache
        for(std::list<std::string>::iterator i = paths.begin();