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
This commit is contained in:
terminx 2015-05-26 00:48:01 +00:00
parent 54d016902f
commit 5064e8b8cd
2 changed files with 8 additions and 0 deletions

View file

@ -105,6 +105,8 @@ extern const char *mapster32_fullpath;
extern char *testplay_addparam; extern char *testplay_addparam;
extern const char *g_namesFileName; extern const char *g_namesFileName;
extern int32_t gridlock;
extern int32_t g_maxCacheSize; extern int32_t g_maxCacheSize;
extern int32_t g_lazy_tileselector; extern int32_t g_lazy_tileselector;

View file

@ -4474,6 +4474,12 @@ static void Keys3d(void)
message("Visibility changed on all selected sectors"); 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 (PRESSED_KEYSC(V)) //V
{ {
if (ASSERT_AIMING) if (ASSERT_AIMING)