1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 03:34:49 +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
commit 342c7c4484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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