mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-07 16:24:30 +00:00
more guard fixes
This commit is contained in:
1 parent
319e316b55
commit
94c7cf6b03
2 files changed
+21
-11
No files matched your search
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "hyper.h"
|
||||
namespace hr {
|
||||
#if MAXMDIM >= 4
|
||||
|
||||
EX hyperpoint final_coords(hyperpoint h) {
|
||||
if(sn::in() || !bt::in())
|
||||
@@ -68,6 +67,19 @@ void subcellshape::compute_hept() {
|
||||
compute_common();
|
||||
}
|
||||
|
||||
EX namespace reg3 {
|
||||
EX void make_vertices_only(vector<hyperpoint>& vo, const vector<vector<hyperpoint>>& csh) {
|
||||
vo.clear();
|
||||
for(auto& v: csh)
|
||||
for(hyperpoint h: v) {
|
||||
bool found = false;
|
||||
for(hyperpoint h2: vo) if(hdist(h, h2) < 1e-6) found = true;
|
||||
if(!found) vo.push_back(h);
|
||||
}
|
||||
}
|
||||
EX }
|
||||
|
||||
#if MAXMDIM >= 4
|
||||
void subcellshape::compute_sub() {
|
||||
hyperpoint gres = Hypc;
|
||||
for(auto& face: faces) {
|
||||
@@ -167,16 +179,6 @@ EX namespace reg3 {
|
||||
}
|
||||
}
|
||||
|
||||
EX void make_vertices_only(vector<hyperpoint>& vo, const vector<vector<hyperpoint>>& csh) {
|
||||
vo.clear();
|
||||
for(auto& v: csh)
|
||||
for(hyperpoint h: v) {
|
||||
bool found = false;
|
||||
for(hyperpoint h2: vo) if(hdist(h, h2) < 1e-6) found = true;
|
||||
if(!found) vo.push_back(h);
|
||||
}
|
||||
}
|
||||
|
||||
EX void generate() {
|
||||
|
||||
if(fake::in()) {
|
||||
|
||||
Reference in new issue
Block a user