1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 18:30:34 +00:00

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

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