- fixed checkForHacks placement.

This commit is contained in:
Christoph Oelckers 2020-04-19 19:52:03 +02:00
commit b7ea483323
2 changed files with 3 additions and 6 deletions

View file

@ -112,6 +112,7 @@
#include "formats/multipatchtexture.h"
#include "scriptutil.h"
#include "v_palette.h"
#include "texturemanager.h"
#ifdef __unix__
#include "i_system.h" // for SHARE_DIR
@ -2681,9 +2682,7 @@ static void CheckForHacks(BuildInfo& buildinfo)
buildinfo.Parts.Size() == 1)
{
// This must alter the size of both the texture image and the game texture.
buildinfo.Height = buildinfo.Parts[0].TexImage->GetHeight();
buildinfo.texture->GetTexture()->SetSize(buildinfo.texture->GetTexelWidth(), buildinfo.Height);
buildinfo.texture->SetSize(buildinfo.texture->GetTexelWidth(), buildinfo.Height);
buildinfo.Height = buildinfo.Parts[0].TexImage->GetImage()->GetHeight();
return;
}