1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 14:45:12 +00:00

surface 3D graphics are now automatically disabled in rug (won't work correctly with quotient rugs anyway) and in pmodels which do not support it

This commit is contained in:
Zeno Rogue
2018-12-05 19:57:35 +01:00
parent e68da3d9a9
commit d8bf550d37
6 changed files with 35 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ namespace hr {
int inmirrorcount = 0;
bool spatial_graphics;
bool wmspatial, wmescher, wmplain, wmblack, wmascii;
bool mmspatial, mmhigh, mmmon, mmitem;
@@ -5301,6 +5302,13 @@ void drawthemap() {
mmmon = vid.monmode >= 2;
mmhigh = vid.monmode == 3 || vid.monmode == 5;
mmspatial = vid.monmode == 4 || vid.monmode == 5;
spatial_graphics = wmspatial || mmspatial;
if(rug::rugged && !rug::spatial_rug) spatial_graphics = false;
if(non_spatial_model())
spatial_graphics = false;
if(!spatial_graphics) wmspatial = mmspatial = false;
DEBB(DF_GRAPH, (debugfile,"draw the map\n"));