1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-21 04:19:43 +00:00

3d:: fixed pushing directions

This commit is contained in:
?
2019-02-27 16:14:28 +01:00
committed by Zeno Rogue
parent 71ef823c43
commit 42e4342c4a
5 changed files with 24 additions and 5 deletions

View File

@@ -277,6 +277,10 @@ void gen600() {
adj0.clear();
for(int i=0; i<120; i++) if(inedge[root][i]) adj0.push_back(i);
using namespace hyperpoint_vec;
for(int i=0; i<6; i++) for(int j=i+1; j<12; j++) if(zero_d(vertices120[adj0[i]] + vertices120[adj0[j]], 3))
swap(adj0[j], adj0[i+6]);
for(int i=0; i<120; i++) for(int j=0; j<120; j++)
if(hdist(vertices120[i], vertices120[j]) > 3)