Skip to content

Commit

Permalink
- Fixed stretching for 256 and 240 pixels tall skies in software.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 authored and coelckers committed Nov 2, 2019
1 parent 857d017 commit bd90a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rendering/r_sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void InitSkyMap(FLevelLocals *Level)
skyheight = skytex1->GetDisplayHeight();

Level->skystretch = (r_skymode == 1
&& skyheight >= 128 && skyheight < 310
&& skyheight >= 128 && skyheight <= 256
&& Level->IsFreelookAllowed()
&& !(Level->flags & LEVEL_FORCETILEDSKY)) ? 1 : 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/rendering/swrenderer/plane/r_skyplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace swrenderer
FSoftwareTexture *sskytex2 = skytex2->GetSoftwareTexture();
skytexturemid = 0;
int skyheight = skytex1->GetDisplayHeight();
skyoffset = cl_oldfreelooklimit? 0 : skyheight >= 200? 110 : 138;
skyoffset = cl_oldfreelooklimit? 0 : skyheight == 256? 166 : skyheight >= 240? 150 : skyheight >= 200? 110 : 138;
if (skyheight >= 128 && skyheight < 200)
{
skytexturemid = -28;
Expand Down

0 comments on commit bd90a76

Please sign in to comment.