mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
f2a99dec75
commit
e30ab0068e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue