mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 09:17:57 +00:00
Eliminate some use of CAP_FOO and ISFOO outside of the preprocessor.
The old code worked, but it's strange to use these macros as if they were C++ `bool` variables at runtime.
This commit is contained in:
4
rug.cpp
4
rug.cpp
@@ -1624,8 +1624,10 @@ EX void show() {
|
||||
else if(uni == 'n' && !rug::rugged)
|
||||
pushScreen(rug_geometry_choice);
|
||||
#endif
|
||||
else if(uni == 'g' && !rug::rugged && CAP_SDL)
|
||||
#if CAP_SDL
|
||||
else if(uni == 'g' && !rug::rugged)
|
||||
rendernogl = !rendernogl;
|
||||
#endif
|
||||
else if(uni == 's') {
|
||||
texturesize *= 2;
|
||||
if(texturesize == 8192) texturesize = 64;
|
||||
|
Reference in New Issue
Block a user