From 44a15bebea3fdcd11d1d837d9d43dd55e3c52a70 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Jun 2022 00:34:44 +0200 Subject: [PATCH] - fixed background tiling for summary screen. Since the background object gets recycled it must clear this flag before loading a new background. --- src/wi_stuff.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wi_stuff.cpp b/src/wi_stuff.cpp index 129dba2ec..2a901d055 100644 --- a/src/wi_stuff.cpp +++ b/src/wi_stuff.cpp @@ -278,6 +278,7 @@ bool DInterBackground::LoadBackground(bool isenterpic) bcnt = 0; + tilebackground = false; texture.SetInvalid(); level_info_t * li = FindLevelInfo(wbs->current); @@ -548,7 +549,8 @@ bool DInterBackground::LoadBackground(bool isenterpic) background = texture; auto tex= TexMan.GetGameTexture(texture); // extremely small textures will always be tiled. - if (tex && tex->GetDisplayWidth() < 128 && tex->GetDisplayHeight() < 128) tilebackground = true; + if (tex && tex->GetDisplayWidth() < 128 && tex->GetDisplayHeight() < 128) + tilebackground = true; return noautostartmap; }