changed ase texture parsing to match DoomEdit

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@93 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog
2006-07-22 14:20:53 +00:00
parent e986a9d479
commit e87a0b240c
4 changed files with 28 additions and 22 deletions

View File

@@ -1130,24 +1130,28 @@ static picoModel_t *_ase_load( PM_PARAMS_LOAD )
{
if(_pico_strnicmp(p, "quake", 5) == 0 || _pico_strnicmp(p, "doom", 4) == 0)
{
break;
/* root-relative */
for(; *p != '\0'; ++p)
{
if(*p == '/')
{
++p;
/* game-relative */
for(; *p != '\0'; ++p)
{
if(*p == '/')
{
++p;
break;
}
}
}
}
}
}
/* root-relative */
for(; *p != '\0'; ++p)
{
if(*p == '/')
/* DoomEdit's ASE loader searches for /base/ */
else if(_pico_strnicmp(p, "/base/", 6) == 0)
{
++p;
break;
}
}
/* game-relative */
for(; *p != '\0'; ++p)
{
if(*p == '/')
{
++p;
p += 6;
break;
}
}