altmap height now uses an outside parameter

This commit is contained in:
Zeno Rogue
2021-07-31 15:14:31 +02:00
parent 83ffa89fbf
commit 8d913f525d
3 changed files with 7 additions and 6 deletions
+3
View File
@@ -1061,6 +1061,8 @@ EX namespace hybrid {
EX int disc_quotient = 0;
EX map<heptagon*, short> altmap_heights;
EX void configure(eGeometry g) {
if(WDIM == 3) return;
ray::reset_raycaster();
@@ -1397,6 +1399,7 @@ EX namespace hybrid {
auto clear_samples = addHook(hooks_clearmemory, 40, [] () {
for(auto& c: cgis) for(auto& v: c.second.walloffsets)
v.second = nullptr;
altmap_heights.clear();
});
EX vector<pair<int, cell*>> gen_sample_list() {