Mapster32: don't produce erratic behavior w/ crash when not in 3D mode.

Also, BUILD_LUNATIC.

git-svn-id: https://svn.eduke32.com/eduke32@4148 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-11-11 20:33:55 +00:00
parent 42f66ce9ca
commit b1d6a97db4

View file

@ -5066,14 +5066,18 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
} }
else if (!Bstrcasecmp(parm->name, "r_downsize")) else if (!Bstrcasecmp(parm->name, "r_downsize"))
{ {
if (r_downsize != r_downsizevar && r_downsizevar != -1) if (r_downsizevar == -1)
r_downsizevar = r_downsize;
if (in3dmode() && r_downsize != r_downsizevar)
{ {
texcache_invalidate(); texcache_invalidate();
resetvideomode(); resetvideomode();
if (setgamemode(fullscreen,xdim,ydim,bpp)) if (setgamemode(fullscreen,xdim,ydim,bpp))
OSD_Printf("restartvid: Reset failed...\n"); OSD_Printf("restartvid: Reset failed...\n");
} }
else r_downsizevar = r_downsize;
r_downsizevar = r_downsize;
return r; return r;
} }