- fixed texture lookup for hightile lookup.

Not all commands had the proper flags to also look in the root folder.
This commit is contained in:
Christoph Oelckers 2021-07-13 08:35:04 +02:00
parent 5af06923d8
commit e3737d3330

View file

@ -255,7 +255,7 @@ int tileSetHightileReplacement(int picnum, int palnum, const char* filename, flo
}
HightileReplacement replace = {};
FTextureID texid = TexMan.CheckForTexture(filename, ETextureType::Any);
FTextureID texid = TexMan.CheckForTexture(filename, ETextureType::Any, FTextureManager::TEXMAN_ForceLookup);
if (!texid.isValid())
{
Printf("%s: Replacement for tile %d does not exist or is invalid\n", filename, picnum);
@ -296,7 +296,7 @@ int tileSetSkybox(int picnum, int palnum, FString* facenames)
FGameTexture *faces[6];
for (int i = 0; i < 6; i++)
{
FTextureID texid = TexMan.CheckForTexture(facenames[i], ETextureType::Any);
FTextureID texid = TexMan.CheckForTexture(facenames[i], ETextureType::Any, FTextureManager::TEXMAN_ForceLookup);
if (!texid.isValid())
{
Printf("%s: Skybox image for tile %d does not exist or is invalid\n", facenames[i].GetChars(), picnum);