(svn r13449) [NoAI] -Fix: .tar support is not yet available inside the library-structure .. disable it for now noai
authortruebrain
Tue, 10 Jun 2008 18:59:10 +0000
branchnoai
changeset 10898 cf5ee9ede576
parent 10897 05487c72e9fc
child 10899 126faeece8b6
(svn r13449) [NoAI] -Fix: .tar support is not yet available inside the library-structure .. disable it for now
src/ai/ai_squirrel.cpp
--- a/src/ai/ai_squirrel.cpp	Tue Jun 10 18:47:31 2008 +0000
+++ b/src/ai/ai_squirrel.cpp	Tue Jun 10 18:59:10 2008 +0000
@@ -52,7 +52,7 @@
 				continue;
 			}
 		}
-		if (sb.st_mode & S_IFREG) {
+		if (sb.st_mode & S_IFREG && !library_dir) {
 			char *ext = strrchr(d_name, '.');
 			if (ext != NULL && strcasecmp(ext, ".tar") != 0) continue;