1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-18 02:59:42 +00:00

wall optimization option (-wallopt): do not draw things behind walls

This commit is contained in:
Zeno Rogue
2019-10-12 11:21:00 +02:00
parent e80869e14e
commit adee8aa699
5 changed files with 14 additions and 0 deletions

View File

@@ -12,6 +12,9 @@ int last_firelimit, firelimit;
EX int inmirrorcount = 0;
/** wall optimization: do not draw things beyond walls */
EX bool wallopt;
EX bool spatial_graphics;
EX bool wmspatial, wmescher, wmplain, wmblack, wmascii;
EX bool mmspatial, mmhigh, mmmon, mmitem;
@@ -4429,6 +4432,8 @@ EX bool isWall3(cell *c, color_t& wcol) {
return false;
}
EX bool isWall3(cell *c) { color_t dummy; return isWall3(c, dummy); }
bool isSulphuric(eWall w) { return among(w, waSulphur, waSulphurC); }
// 'land color', but a bit twisted for Alchemist Lab