mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed background tiling for summary screen.
Since the background object gets recycled it must clear this flag before loading a new background.
This commit is contained in:
parent
5cf6a5ab1a
commit
44a15bebea
1 changed files with 3 additions and 1 deletions
|
@ -278,6 +278,7 @@ bool DInterBackground::LoadBackground(bool isenterpic)
|
||||||
|
|
||||||
bcnt = 0;
|
bcnt = 0;
|
||||||
|
|
||||||
|
tilebackground = false;
|
||||||
texture.SetInvalid();
|
texture.SetInvalid();
|
||||||
|
|
||||||
level_info_t * li = FindLevelInfo(wbs->current);
|
level_info_t * li = FindLevelInfo(wbs->current);
|
||||||
|
@ -548,7 +549,8 @@ bool DInterBackground::LoadBackground(bool isenterpic)
|
||||||
background = texture;
|
background = texture;
|
||||||
auto tex= TexMan.GetGameTexture(texture);
|
auto tex= TexMan.GetGameTexture(texture);
|
||||||
// extremely small textures will always be tiled.
|
// 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;
|
return noautostartmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue