1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-04 10:42:51 +00:00

added missing CAP_TEXTURE guards

This commit is contained in:
Zeno Rogue 2019-01-14 22:56:52 +01:00
parent b8990890d7
commit 6abb527854
2 changed files with 4 additions and 2 deletions

View File

@ -3886,7 +3886,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
int flooralpha = 255; int flooralpha = 255;
#if CAP_EDIT #if CAP_EDIT && CAP_TEXTURE
if((cmode & sm::DRAW) && mapeditor::drawcell && mapeditor::drawcellShapeGroup() == mapeditor::sgFloor && texture::config.tstate != texture::tsActive) if((cmode & sm::DRAW) && mapeditor::drawcell && mapeditor::drawcellShapeGroup() == mapeditor::sgFloor && texture::config.tstate != texture::tsActive)
flooralpha = 0xC0; flooralpha = 0xC0;
#endif #endif

View File

@ -1794,6 +1794,7 @@ namespace mapeditor {
transmatrix mh = textrans * rgpushxto0(mouseh); transmatrix mh = textrans * rgpushxto0(mouseh);
transmatrix ml = textrans * rgpushxto0(lstart); transmatrix ml = textrans * rgpushxto0(lstart);
#if CAP_TEXTURE
for(int j=0; j<=texture::texturesym; j++) for(int j=0; j<=texture::texturesym; j++)
for(int i=0; i<c->type; i += sih.symmetries) { for(int i=0; i<c->type; i += sih.symmetries) {
transmatrix M2 = V * applyPatterndir(c, sih) * spin(2*M_PI*i/c->type); transmatrix M2 = V * applyPatterndir(c, sih) * spin(2*M_PI*i/c->type);
@ -1809,6 +1810,7 @@ namespace mapeditor {
queue_hcircle(M2 * mh, texture::penwidth); queue_hcircle(M2 * mh, texture::penwidth);
} }
} }
#endif
} }
} }