From b62155b5519afc26d02a774398c08103cee2568c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 20 Mar 2019 21:15:42 +0100 Subject: [PATCH] removed unused variable dim3 --- basegraph.cpp | 2 -- graph.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/basegraph.cpp b/basegraph.cpp index ee2a41ff..995f8001 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -215,7 +215,6 @@ glhr::glmatrix model_orientation_gl() { void display_data::set_projection(int ed, bool apply_models) { DEBB(DF_GRAPH, (debugfile,"current_display->set_projection\n")); - bool dim3 = false; bool pers3 = false; shaderside_projection = false; @@ -242,7 +241,6 @@ void display_data::set_projection(int ed, bool apply_models) { if(spherephase == 2) glhr::new_shader_projection = glhr::shader_projection::standardS32; if(spherephase == 3) glhr::new_shader_projection = glhr::shader_projection::standardS33; } - if(DIM == 3 && apply_models && shaderside_projection) dim3 = true; } start_projection(ed, shaderside_projection); diff --git a/graph.cpp b/graph.cpp index d16a680b..b662958e 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5933,6 +5933,7 @@ void drawthemap() { if(pmodel == mdDisk && abs(vid.alpha) < 1e-6) spatial_graphics = false; if(!spatial_graphics) wmspatial = mmspatial = false; + if(DIM == 3) wmspatial = mmspatial = true; DEBB(DF_GRAPH, (debugfile,"draw the map\n"));