- fixed: The Heretic sky height hack needs to be stored in the already created texture object as well.

This commit is contained in:
Christoph Oelckers 2018-12-19 09:12:58 +01:00
parent c471be4409
commit bcff04e76f
2 changed files with 5 additions and 6 deletions

View file

@ -797,6 +797,7 @@ void FMultipatchTextureBuilder::CheckForHacks(BuildInfo &buildinfo)
buildinfo.Height == 128)
{
buildinfo.Height = 200;
buildinfo.tex->SetSize(buildinfo.tex->Width, 200);
return;
}
@ -924,6 +925,7 @@ void FMultipatchTextureBuilder::ResolveAllPatches()
while (BuiltTextures.Size() > 0)
{
bool donesomething = false;
for (unsigned i = 0; i < BuiltTextures.Size(); i++)
{
auto &buildinfo = BuiltTextures[i];

View file

@ -432,14 +432,11 @@ protected:
float shaderspeed = 1.f;
int shaderindex = 0;
// This is only legal for the null texture!
// This is only used for the null texture and for Heretic's skies.
void SetSize(int w, int h)
{
if (UseType == ETextureType::Null)
{
Width = w;
Height = h;
}
Width = w;
Height = h;
}
void SetSpeed(float fac) { shaderspeed = fac; }