1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 05:03:19 +00:00
This commit is contained in:
Zeno Rogue 2020-03-21 10:49:07 +01:00
parent c131ed52ad
commit 64c63b7899
3 changed files with 8 additions and 2 deletions

View File

@ -1696,10 +1696,12 @@ EX void show3D() {
});
}
#if CAP_RAY
if(GDIM == 3) {
dialog::addItem(XLAT("configure raycasting"), 'A');
dialog::add_action_push(ray::configure);
}
#endif
edit_levellines('L');

View File

@ -11,7 +11,7 @@ namespace hr {
EX namespace ray {
#if MAXMDIM >= 4
#if CAP_RAY
/** texture IDs */
GLuint txConnections = 0, txWallcolor = 0, txTextureMap = 0;
@ -1234,7 +1234,7 @@ auto hookc = addHook(hooks_configfile, 100, addconfig);
#endif
#if MAXMDIM == 3
#if !CAP_RAY
EX always_false in_use;
EX always_false comparison_mode;
EX void reset_raycaster() { }

View File

@ -538,6 +538,10 @@ union SDL_Event;
#define CAP_FIELD (!(ISMINI))
#endif
#ifndef CAP_RAY
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE)
#endif
#ifndef CAP_MEMORY_RESERVE
#define CAP_MEMORY_RESERVE (!ISMOBILE && !ISWEB)
#endif