Skip to content

Commit

Permalink
- fixed texture lookup for hightile lookup.
Browse files Browse the repository at this point in the history
Not all commands had the proper flags to also look in the root folder.
  • Loading branch information
coelckers authored and mjr4077au committed Jul 17, 2021
1 parent d94b558 commit 77e0463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/core/textures/hightile.cpp
Expand Up @@ -260,7 +260,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);
Expand Down Expand Up @@ -301,7 +301,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);
Expand Down

0 comments on commit 77e0463

Please sign in to comment.