noGUI taken into account in more places

This commit is contained in:
Zeno Rogue 2019-11-09 11:18:52 +01:00
parent 68e3d98f88
commit e6be9231c9
3 changed files with 4 additions and 1 deletions

View File

@ -834,7 +834,7 @@ void geometry_information::make_shadow(hpcshape& sh) {
}
void geometry_information::make_3d_models() {
if(GDIM == 2) return;
if(GDIM == 2 || noGUI) return;
eyepos = WDIM == 2 ? 0.875 : 0.925;
DEBBI(DF_POLY, ("make_3d_models"));
shcenter = C0;

View File

@ -1069,6 +1069,7 @@ void geometry_information::make_floor_textures_here() {
}
EX void make_floor_textures() {
if(noGUI || !vid.usingGL) return;
DEBBI(DF_POLY, ("make_floor_textures"));
dynamicval<eGeometry> g(geometry, gEuclidSquare);
dynamicval<eModel> gm(pmodel, mdDisk);

View File

@ -59,6 +59,8 @@ eGeometry last_geometry;
/** is the raycaster available? */
EX bool available() {
if(noGUI) return false;
if(!vid.usingGL) return false;
if(WDIM == 2) return false;
if(hyperbolic && pmodel == mdPerspective && !penrose)
return true;