mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
fixed sidewall ordering yet again
This commit is contained in:
parent
6191409624
commit
0b7b415f19
@ -539,6 +539,11 @@ void quickqueue() {
|
|||||||
for(int i=0; i<siz; i++) drawqueueitem(ptds[i]);
|
for(int i=0; i<siz; i++) drawqueueitem(ptds[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ld xintval(const hyperpoint& h) {
|
||||||
|
if(sphere && vid.alpha > 1) return -h[2];
|
||||||
|
return -intval(h, C0);
|
||||||
|
}
|
||||||
|
|
||||||
void drawqueue() {
|
void drawqueue() {
|
||||||
|
|
||||||
int siz = size(ptds);
|
int siz = size(ptds);
|
||||||
@ -581,8 +586,8 @@ void drawqueue() {
|
|||||||
PPR_LAKEWALL, PPR_INLAKEWALL, PPR_BELOWBOTTOM})
|
PPR_LAKEWALL, PPR_INLAKEWALL, PPR_BELOWBOTTOM})
|
||||||
sort(&ptds2[qp0[p]], &ptds2[qp[p]],
|
sort(&ptds2[qp0[p]], &ptds2[qp[p]],
|
||||||
[] (polytodraw* p1, polytodraw* p2) {
|
[] (polytodraw* p1, polytodraw* p2) {
|
||||||
return intval(p1->u.poly.V * xpush0(.1), C0)
|
return xintval(p1->u.poly.V * xpush0(.1))
|
||||||
< intval(p2->u.poly.V * xpush0(.1), C0);
|
< xintval(p2->u.poly.V * xpush0(.1));
|
||||||
});
|
});
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user