mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-24 01:52:28 +00:00
product:: preliminary version (no turning)
This commit is contained in:
1 parent
f3dd779947
commit
6958cbcbd9
22 files changed
+349
-116
No files matched your search
@@ -146,8 +146,8 @@ EX cell *createMov(cell *c, int d) {
|
||||
}
|
||||
|
||||
if(c->move(d)) return c->move(d);
|
||||
PROD( else if(geometry == gProduct)
|
||||
product::find_cell_connection(c, d); )
|
||||
else if(geometry == gProduct)
|
||||
product::find_cell_connection(c, d);
|
||||
#if CAP_BT
|
||||
else if(penrose)
|
||||
kite::find_cell_connection(c, d);
|
||||
@@ -263,11 +263,10 @@ EX void initcells() {
|
||||
|
||||
hrmap* res = callhandlers((hrmap*)nullptr, hooks_newmap);
|
||||
if(res) currentmap = res;
|
||||
else if(nonisotropic) currentmap = nisot::new_map();
|
||||
else if(nonisotropic || prod) currentmap = nisot::new_map();
|
||||
#if CAP_CRYSTAL
|
||||
else if(geometry == gCrystal) currentmap = crystal::new_map();
|
||||
#endif
|
||||
PROD( else if(geometry == gProduct) currentmap = product::new_map(); )
|
||||
#if CAP_ARCM
|
||||
else if(archimedean) currentmap = arcm::new_map();
|
||||
#endif
|
||||
@@ -862,7 +861,7 @@ int ld_to_int(ld x) {
|
||||
|
||||
EX int pseudocoords(cell *c) {
|
||||
transmatrix T = arcm::archimedean_gmatrix[c->master].second;
|
||||
return pair_to_vec(ld_to_int(T[0][GDIM]), ld_to_int((spin(60*degree) * T)[0][GDIM]));
|
||||
return pair_to_vec(ld_to_int(T[0][LDIM]), ld_to_int((spin(60*degree) * T)[0][LDIM]));
|
||||
}
|
||||
|
||||
EX cdata *arcmCdata(cell *c) {
|
||||
|
||||
Reference in new issue
Block a user