Commit 231eca49 authored by hybrid's avatar hybrid

Add support for more image types in q3 level loading.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3677 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c90a2c19
......@@ -771,14 +771,19 @@ namespace quake3
io::IFileSystem *fileSystem,
video::IVideoDriver* driver)
{
static const char * extension[2] =
static const char* extension[] =
{
".jpg",
".tga"
".jpeg",
".png",
".dds",
".tga",
".bmp",
".pcx"
};
tStringList stringList;
getAsStringList ( stringList, -1, name, startPos );
getAsStringList(stringList, -1, name, startPos);
textures.clear();
......@@ -786,7 +791,7 @@ namespace quake3
for ( u32 i = 0; i!= stringList.size (); ++i )
{
video::ITexture* texture = 0;
for ( u32 g = 0; g != 2 ; ++g )
for (u32 g = 0; g != 7 ; ++g)
{
core::cutFilenameExtension ( loadFile, stringList[i] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment