Only use 'texture' in editAt guard when CAP_TEXTURE is set.

This commit is contained in:
Jacob Mandelson 2023-03-11 08:22:59 -08:00
parent 999b26e818
commit 9982f88a41
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}