]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
* fixed relative paths for md2 skinnames (supported textures are defined in the gamepack)
authormattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Tue, 4 Mar 2008 20:42:12 +0000 (20:42 +0000)
committermattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Tue, 4 Mar 2008 20:42:12 +0000 (20:42 +0000)
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@204 8a3a26a2-13c4-0310-b231-cf6edde360e5

plugins/md3model/md2.cpp

index 7b93138606aa430e12104f8c96837ba1204eb4a8..55a32f5fb9d29a835dd6d9ea93fbb3423c791107 100644 (file)
@@ -258,8 +258,7 @@ void MD2Surface_read(Model& model, const byte* buffer, ArchiveFile& file)
            path[i] = '\0';
        }
 //     globalErrorStream() << "modified skinname: " << path << " (path) and " << skinnameRelative << " (texture)" << "\n";
-       // TODO: search for tga, png, jpg (this order)
-       snprintf(skinname, MD2_MAX_SKINNAME, "%s%s.jpg", path, &skinnameRelative[1]);
+       snprintf(skinname, MD2_MAX_SKINNAME, "%s%s", path, &skinnameRelative[1]);
 //     globalErrorStream() << skinname << "\n";
   } 
   else