mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 19:02:45 +00:00
titlemap - skipintro bugfix
game crash with -skipintro enabled, hopefully fixes it and causes no issues anywhere else
This commit is contained in:
parent
fd97fdd683
commit
068c9d6294
2 changed files with 3 additions and 4 deletions
|
@ -64,10 +64,6 @@ void R_SetupSkyDraw(void)
|
|||
// the horizon line in a 256x128 sky texture
|
||||
skytexturemid = (textures[skytexture]->height/2)<<FRACBITS;
|
||||
|
||||
// get the right drawer, it was set by screen.c, depending on the
|
||||
// current video mode bytes per pixel (quick fix)
|
||||
wallcolfunc = walldrawerfunc;
|
||||
|
||||
R_SetSkyScale();
|
||||
}
|
||||
|
||||
|
|
|
@ -170,6 +170,9 @@ void SCR_SetMode(void)
|
|||
if (SCR_IsAspectCorrect(vid.width, vid.height))
|
||||
CONS_Alert(CONS_WARNING, M_GetText("Resolution is not aspect-correct!\nUse a multiple of %dx%d\n"), BASEVIDWIDTH, BASEVIDHEIGHT);
|
||||
#endif*/
|
||||
|
||||
wallcolfunc = walldrawerfunc;
|
||||
|
||||
// set the apprpriate drawer for the sky (tall or INT16)
|
||||
setmodeneeded = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue