1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 11:17:56 +00:00

fixed eyes on sphere

This commit is contained in:
Zeno Rogue
2022-12-09 02:25:02 +01:00
parent 9b3324b7eb
commit 1bb8056e0d
2 changed files with 7 additions and 1 deletions

View File

@@ -754,7 +754,7 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye
vector<hyperpoint> pss;
for(int i=head.s; i<head.e; i++) pss.push_back(psmin(lzpush(shift_head) * hpc[i]));
for(int i=head.s; i<head.e; i++) pss.push_back(psmin(lzpush(shift_head - (moved_center() ? 1 : 0)) * hpc[i]));
ld zmid = 0;
for(hyperpoint& h: pss) zmid += h[2];