mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-17 07:07:38 +00:00
hybrid:: refactored the common parts of prod and sl2, also used them when applicable
This commit is contained in:
@@ -774,10 +774,10 @@ void set_floor(const transmatrix& spin, hpcshape& sh) {
|
||||
}
|
||||
|
||||
EX int shvid(cell *c) {
|
||||
if(prod) {
|
||||
if(hybri) {
|
||||
int d;
|
||||
cell *c1 = product::get_where(c).first;
|
||||
product::in_underlying_map([&] { d = shvid(c1); });
|
||||
cell *c1 = hybrid::get_where(c).first;
|
||||
hybrid::in_underlying_map([&] { d = shvid(c1); });
|
||||
return d;
|
||||
}
|
||||
else if(GOLDBERG)
|
||||
|
Reference in New Issue
Block a user