From 9982f88a412c746e7831e7f344472cd116534778 Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Sat, 11 Mar 2023 08:22:59 -0800 Subject: [PATCH] Only use 'texture' in editAt guard when CAP_TEXTURE is set. --- mapeditor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index b9f3b1ba..8b2eea5a 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -1628,7 +1628,11 @@ EX namespace mapeditor { void allInPattern(cellwalker where) { manual_celllister cl; - if(!patterns::whichPattern || texture::config.tstate == texture::tsActive) { + bool call_editAt = !patterns::whichPattern; +#if CAP_TEXTURE + call_editAt |= (texture::config.tstate == texture::tsActive); +#endif + if (call_editAt) { editAt(where, cl); return; }