1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 00:17:39 +00:00

Merge pull request #335 from jlmjlm/aip_text3

Only use 'texture' in editAt guard when CAP_TEXTURE is set.
This commit is contained in:
Zeno Rogue
2023-03-26 12:35:36 +02:00
committed by GitHub

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