1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

never_invert flag, mainly for debugging

This commit is contained in:
Zeno Rogue 2023-02-10 19:05:05 +01:00
parent fb2a3a7931
commit 29d1a0c191
2 changed files with 5 additions and 2 deletions

View File

@ -1275,6 +1275,7 @@ geom3::eSpatialEmbedding embed_by_name(string ss) {
return seNone; return seNone;
} }
auto ah_embed = arg::add2("-seo", [] { arg::shift(); invoke_embed(embed_by_name(arg::args())); }); auto ah_embed = arg::add2("-seo", [] { arg::shift(); invoke_embed(embed_by_name(arg::args())); })
+ arg::add2("-never-invert", [] { never_invert = true; });
} }

View File

@ -450,7 +450,9 @@ EX bool no_easy_spin() {
return NONSTDVAR || arcm::in() || WDIM == 3 || bt::in() || kite::in(); return NONSTDVAR || arcm::in() || WDIM == 3 || bt::in() || kite::in();
} }
EX bool dont_inverse() { return PURE && cgi.emb->is_euc_in_noniso(); } EX bool never_invert;
EX bool dont_inverse() { return never_invert || (PURE && cgi.emb->is_euc_in_noniso()); }
ld hrmap_standard::spin_angle(cell *c, int d) { ld hrmap_standard::spin_angle(cell *c, int d) {
if(WDIM == 3) return SPIN_NOT_AVAILABLE; if(WDIM == 3) return SPIN_NOT_AVAILABLE;