1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 11:58:07 +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

@@ -2516,10 +2516,10 @@ void buildpolys() {
bshape(shBinaryWall[w], PPR::WALL);
for(int a=0; a<=4; a++) {
int t[3];
t[0] = (w&1) ? -1 : 1;
t[0] = (w>=3) ? -1 : 1;
t[1] = among(a, 0, 3, 4) ? -1 : 1;
t[2] = among(a, 2, 3) ? -1 : 1;
int x = w/2;
int x = w%3;
int y = (x+2)%3;
int z = (y+2)%3;
hpcpush(hpxy3(t[x]/2., t[y]/2., t[z]/2.));