1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-30 13:32:59 +00:00

new pmodel: Central Inversion (for Euclidean)

This commit is contained in:
Zeno Rogue
2019-07-03 04:53:56 +02:00
parent 15a9b6135b
commit fc43a4716b
5 changed files with 15 additions and 2 deletions

View File

@@ -958,6 +958,7 @@ void dqi_poly::draw() {
if(pmodel == mdJoukowskyInverted && vid.skiprope) can_have_inverse = true;
if(pmodel == mdDisk && hyperbolic && vid.alpha <= -1) can_have_inverse = true;
if(pmodel == mdSpiral && vid.skiprope) can_have_inverse = true;
if(pmodel == mdCentralInversion) can_have_inverse = true;
if(can_have_inverse && !(poly_flags & POLY_ISSIDE)) {
@@ -966,6 +967,7 @@ void dqi_poly::draw() {
else {
if(d < 0) poly_flags ^= POLY_INVERSE;
if(pmodel == mdCentralInversion) poly_flags ^= POLY_INVERSE;
compute_side_by_area();
}