From 5064e8b8cdf7156a529a1d9ca43bb1efc9454a44 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 26 May 2015 00:48:01 +0000 Subject: [PATCH] Make 'L' key toggle grid lock in 3D mode, because it affects placement of sprites inserted with 'S'. git-svn-id: https://svn.eduke32.com/eduke32@5240 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/editor.h | 2 ++ polymer/eduke32/source/astub.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/polymer/eduke32/build/include/editor.h b/polymer/eduke32/build/include/editor.h index 35a0352f2..03dbd00e9 100644 --- a/polymer/eduke32/build/include/editor.h +++ b/polymer/eduke32/build/include/editor.h @@ -105,6 +105,8 @@ extern const char *mapster32_fullpath; extern char *testplay_addparam; extern const char *g_namesFileName; +extern int32_t gridlock; + extern int32_t g_maxCacheSize; extern int32_t g_lazy_tileselector; diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index b761ef69f..0048f6087 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -4474,6 +4474,12 @@ static void Keys3d(void) message("Visibility changed on all selected sectors"); } + if (PRESSED_KEYSC(L)) // L (grid lock) + { + gridlock = !gridlock; + message("Grid locking %s", gridlock ? "on" : "off"); + } + if (PRESSED_KEYSC(V)) //V { if (ASSERT_AIMING)