1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

2d3d:: fixed armor

This commit is contained in:
Zeno Rogue 2019-05-11 15:01:09 +02:00
parent 0dc552bac4
commit bd449f5e0e

View File

@ -360,7 +360,7 @@ void addtri(array<hyperpoint, 3> hs, int kind) {
if(hsh[s] < 0.1*S) shi[s] = -0.5; if(hsh[s] < 0.1*S) shi[s] = -0.5;
else if(hsh[s] < 0.12*S) shi[s] = -0.1 - 0.4 * (hsh[s]/S - 0.1) / (0.12 - 0.1); else if(hsh[s] < 0.12*S) shi[s] = -0.1 - 0.4 * (hsh[s]/S - 0.1) / (0.12 - 0.1);
else shi[s] = -0.1; else shi[s] = -0.1;
shi[s] *= geom3::human_height; shi[s] *= geom3::human_height * revZ;
} }
if(ok && kind == 1) for(int i=0; i<3; i++) { if(ok && kind == 1) for(int i=0; i<3; i++) {
int j = (i+1) % 3; int j = (i+1) % 3;