From d9d8a56abf9f04ddced7b066120303987b2ed05f Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 31 Oct 2015 15:13:29 +0000 Subject: [PATCH] Mapster32: don't offer to "Insert outer loop and make red walls" w/ RAlt+RCtrl. This feature only makes sense with the complete de-selection of a set of sectors, i.e. when pressing RAlt to do this, not adding or removing sectors to/from the set of already highlighted ones. git-svn-id: https://svn.eduke32.com/eduke32@5410 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index abbbb8747..290e77573 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -5145,7 +5145,7 @@ end_yax: ; else { // didmakered: 'bad'! - int32_t didmakered = (highlightsectorcnt<0), hadouterpoint=0; + int32_t didmakered = (highlightsectorcnt<0) || eitherCTRL, hadouterpoint=0; #ifdef YAX_ENABLE for (i=0; i>3; i++) hlorgraysectbitmap[i] = hlsectorbitmap[i]|graysectbitmap[i]; @@ -5372,8 +5372,9 @@ end_autoredwall: { if (highlightsectorcnt == 0) { - int32_t add=keystatus[0x28], sub=(!add && keystatus[0x27]), setop=(add||sub); - int32_t tx,ty, pointsel = eitherCTRL; + int32_t const add=keystatus[0x28], sub=(!add && keystatus[0x27]), setop=(add||sub); + int32_t const pointsel = eitherCTRL; + int32_t tx,ty; #ifdef YAX_ENABLE // home: ceilings, end: floors int32_t fb, bunchsel = keystatus[0xcf] ? 1 : (keystatus[0xc7] ? 0 : -1);