From 830a2703dd35adaa32e0bf87c1c58843f92c8b29 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 5 Aug 2020 01:27:18 +0200 Subject: [PATCH] fixed shmup in elliptic --- shmup.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shmup.cpp b/shmup.cpp index 6c2ecdf7..09b65cc6 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -2903,6 +2903,10 @@ bool celldrawer::draw_shmup_monster() { if(c != m->base) continue; // may happen in RogueViz Collatz m->pat = ggmatrix(m->base) * m->at; shiftmatrix view = V * m->at; + + bool half_elliptic = elliptic && GDIM == 3 && WDIM == 2; + bool mirrored = det(view.T) > 0; + if(half_elliptic && mirrored) continue; if(!mouseout()) { if(m->no_targetting) ; else