From e30ab0068e3d469e0870b9c1d36f78f58eda64d5 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 20 Oct 2015 07:14:52 +0000 Subject: [PATCH] Mapster32: fix 2d3d mode input issue when sector is -1 git-svn-id: https://svn.eduke32.com/eduke32@5385 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/include/editor.h b/polymer/eduke32/build/include/editor.h index bee87262a..786202a81 100644 --- a/polymer/eduke32/build/include/editor.h +++ b/polymer/eduke32/build/include/editor.h @@ -379,7 +379,7 @@ static inline int32_t m32_2d3d_resolutions_match() static inline int32_t m32_is2d3dmode(void) { - return !in3dmode() && m32_2d3dmode && + return !in3dmode() && m32_2d3dmode && (unsigned)cursectnum < MAXSECTORS && m32_2d3d_resolutions_match() && searchx > m32_2d3d.x && searchx < (m32_2d3d.x + XSIZE_2D3D) && searchy > m32_2d3d.y && searchy < (m32_2d3d.y + YSIZE_2D3D);