Support for negative scroll speeds on title screen

This commit is contained in:
toasterbabe 2017-05-14 19:20:00 +01:00
parent b864e45487
commit b13a9ad9d1

View file

@ -227,7 +227,8 @@ static void F_SkyScroll(INT32 scrollspeed)
pat = W_CachePatchName("TITLESKY", PU_CACHE);
animtimer = ((finalecount*scrollspeed)/16) % SHORT(pat->width);
fakedwidth = SHORT(pat->width);
animtimer = ((finalecount*scrollspeed)/16 + fakedwidth) % fakedwidth;
fakedwidth = vid.width / vid.dupx;