mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
fixed a potential bug in generate_floorshapes() -- generate the models up to FULL_EDGE, as S6 could exceed S7
This commit is contained in:
parent
2f2e770d64
commit
ababcdfee8
@ -789,18 +789,20 @@ void geometry_information::generate_floorshapes() {
|
||||
cell model;
|
||||
model.master = &modelh;
|
||||
modelh.c7 = &model;
|
||||
model.type = modelh.type = S7;
|
||||
model.type = modelh.type = FULL_EDGE;
|
||||
|
||||
auto mmerge1 = [&] (int i, int j) { model.c.setspin(i, j, false); modelh.c.setspin(i, j, false); };
|
||||
auto mmerge = [&] (int i, int j) { mmerge1(i, j); mmerge1(j, i); };
|
||||
|
||||
for(int i=0; i<S7; i++) {
|
||||
for(int i=0; i<FULL_EDGE; i++) {
|
||||
model.move(i) = &model;
|
||||
modelh.move(i) = &modelh;
|
||||
model.c.setspin(i, i, false);
|
||||
modelh.c.setspin(i, i, false);
|
||||
}
|
||||
|
||||
model.type = modelh.type = S7;
|
||||
|
||||
if(WDIM == 3) ;
|
||||
|
||||
#if CAP_IRR
|
||||
|
Loading…
x
Reference in New Issue
Block a user