Mapster32: fix 2d3d mode input issue when sector is -1

git-svn-id: https://svn.eduke32.com/eduke32@5385 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-10-20 07:14:52 +00:00
parent f2a99dec75
commit e30ab0068e

View file

@ -379,7 +379,7 @@ static inline int32_t m32_2d3d_resolutions_match()
static inline int32_t m32_is2d3dmode(void) static inline int32_t m32_is2d3dmode(void)
{ {
return !in3dmode() && m32_2d3dmode && return !in3dmode() && m32_2d3dmode && (unsigned)cursectnum < MAXSECTORS &&
m32_2d3d_resolutions_match() && m32_2d3d_resolutions_match() &&
searchx > m32_2d3d.x && searchx < (m32_2d3d.x + XSIZE_2D3D) && searchx > m32_2d3d.x && searchx < (m32_2d3d.x + XSIZE_2D3D) &&
searchy > m32_2d3d.y && searchy < (m32_2d3d.y + YSIZE_2D3D); searchy > m32_2d3d.y && searchy < (m32_2d3d.y + YSIZE_2D3D);