mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
3d:: queuechr(V/T) no longer displays points if they are behind
This commit is contained in:
parent
f0b984aa3b
commit
ee87c94e05
@ -3020,6 +3020,7 @@ void getcoord0(const hyperpoint& h, int& xc, int &yc, int &sc) {
|
||||
|
||||
void queuechr(const hyperpoint& h, int size, char chr, color_t col, int frame) {
|
||||
if(invalid_point(h)) return;
|
||||
if(DIM == 3 && invis_point(h)) return;
|
||||
int xc, yc, sc; getcoord0(h, xc, yc, sc);
|
||||
queuechr(xc, yc, sc, size, chr, col, frame);
|
||||
}
|
||||
@ -3030,6 +3031,7 @@ ld scale_in_pixels(const transmatrix& V) {
|
||||
|
||||
void queuechr(const transmatrix& V, double size, char chr, color_t col, int frame) {
|
||||
if(invalid_point(V)) return;
|
||||
if(DIM == 3 && invis_point(tC0(V))) return;
|
||||
int xc, yc, sc; getcoord0(tC0(V), xc, yc, sc);
|
||||
queuechr(xc, yc, sc, scale_in_pixels(V) * size, chr, col, frame);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user