1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 23:06:00 +00:00

rogueviz:: added CAP_RAY and CAP_SOLV guards

This commit is contained in:
Zeno Rogue
2021-06-25 13:54:17 +02:00
parent 28d334c660
commit d7326e7f87
4 changed files with 26 additions and 1 deletions

View File

@@ -71,13 +71,17 @@ auto geoslide(eGeometry g, char canvas, int jhole, int jblock) {
if(sl2) {
addMessage("Raycaster not implemented here.");
}
#if CAP_RAY
else if(ray::want_use != 2) {
ray::want_use = 2;
ray::max_cells = 4096;
addMessage("Using a raycaster.");
}
#endif
else {
#if CAP_RAY
ray::want_use = 0;
#endif
addMessage("Using primitives.");
}
}