From 1a7d55fd529da5fe20e663ddb54ddb4d2eb2523c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 8 Jan 2022 18:52:17 +0100 Subject: [PATCH] changed disable_flooshapes to floorshapes_level --- floorshapes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/floorshapes.cpp b/floorshapes.cpp index ef33b682..cd783672 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -26,10 +26,11 @@ EX vector floor_texture_vertices; EX vector floor_texture_map; EX struct renderbuffer *floor_textures; -EX bool disable_floorshapes = false; /* tiles generates faster, but crash on drawing */ +/* 0: generate no floorshapes; 1: generate only plain floorshapes; 2: generate all */ +EX int floorshapes_level = 2; void geometry_information::init_floorshapes() { - if(disable_floorshapes) return; + if(floorshapes_level == 0) return; all_escher_floorshapes.clear(); all_plain_floorshapes = { &shFloor, &shMFloor, &shMFloor2, &shMFloor3, &shMFloor4, @@ -39,6 +40,7 @@ void geometry_information::init_floorshapes() { for(auto s: all_plain_floorshapes) s->is_plain = true; auto init_escher = [this] (escher_floorshape& sh, int s0, int s1, int noft, int s2) { + if(floorshapes_level == 1) return; sh.shapeid0 = s0; sh.shapeid1 = s1; sh.noftype = noft;