mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-05 23:09:04 +00:00
Fixed: Updated dds rename in tilebank to also work with png.
This commit is contained in:
parent
b70c68d332
commit
54557c0bbb
1 changed files with 6 additions and 0 deletions
|
@ -389,6 +389,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|||
// Diffuse
|
||||
tmp= _TileVector[nTile].getRelativeFileName (CTile::diffuse);
|
||||
pos= tmp.rfind(".tga");
|
||||
if (pos == string::npos)
|
||||
pos = tmp.rfind(".png");
|
||||
if(pos!= string::npos)
|
||||
{
|
||||
tmp.replace(pos, 4, ".dds");
|
||||
|
@ -398,6 +400,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|||
// Additive.
|
||||
tmp= _TileVector[nTile].getRelativeFileName (CTile::additive);
|
||||
pos= tmp.rfind(".tga");
|
||||
if (pos == string::npos)
|
||||
pos = tmp.rfind(".png");
|
||||
if(pos!= string::npos)
|
||||
{
|
||||
tmp.replace(pos, 4, ".dds");
|
||||
|
@ -407,6 +411,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|||
// Alpha.
|
||||
tmp= _TileVector[nTile].getRelativeFileName (CTile::alpha);
|
||||
pos= tmp.rfind(".tga");
|
||||
if (pos == string::npos)
|
||||
pos = tmp.rfind(".png");
|
||||
if(pos!= string::npos)
|
||||
{
|
||||
tmp.replace(pos, 4, ".dds");
|
||||
|
|
Loading…
Reference in a new issue