mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +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:
		| @@ -789,18 +789,20 @@ void geometry_information::generate_floorshapes() { | |||||||
|   cell model; |   cell model; | ||||||
|   model.master = &modelh; |   model.master = &modelh; | ||||||
|   modelh.c7 = &model; |   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 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); };   |   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; |     model.move(i) = &model; | ||||||
|     modelh.move(i) = &modelh; |     modelh.move(i) = &modelh; | ||||||
|     model.c.setspin(i, i, false); |     model.c.setspin(i, i, false); | ||||||
|     modelh.c.setspin(i, i, false); |     modelh.c.setspin(i, i, false); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |   model.type = modelh.type = S7; | ||||||
|  |  | ||||||
|   if(WDIM == 3) ; |   if(WDIM == 3) ; | ||||||
|    |    | ||||||
|   #if CAP_IRR |   #if CAP_IRR | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue