Undo accidental screwup of some HiresTextures code from project-moration.

This is why I should wait for people to review, even if I get annoyed
that nobody seems to care. :duncecap:
This commit is contained in:
comex 2015-06-04 02:51:02 -04:00
parent 0f7f8f8774
commit 830a4e4f8f
1 changed files with 7 additions and 2 deletions

View File

@ -102,8 +102,13 @@ void HiresTexture::Update()
std::string FileName; std::string FileName;
SplitPath(rFilename, nullptr, &FileName, nullptr); SplitPath(rFilename, nullptr, &FileName, nullptr);
if (FileName.substr(0, code.length()) == code || if (FileName.substr(0, code.length()) == code)
FileName.substr(0, s_format_prefix.length()) == s_format_prefix) {
s_textureMap[FileName] = rFilename;
s_check_native_format = true;
}
if (FileName.substr(0, s_format_prefix.length()) == s_format_prefix)
{ {
s_textureMap[FileName] = rFilename; s_textureMap[FileName] = rFilename;
s_check_new_format = true; s_check_new_format = true;