From 470c4aed3def4221f211eb24b7863d813964ae3e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 15 May 2020 17:30:21 +0200 Subject: [PATCH] GOLDBERG world size no longer crashes the game in geom-exp --- geom-exp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index 375445c1..34c6516d 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -616,11 +616,11 @@ EX void showEuclideanMenu() { int denom = (2*ts + 2*tv - ts * tv); #if CAP_GP - if(GOLDBERG && S3) - nom = 2 * (2*tv + ts * (cgi.gpdata->area-1)); - - if(GOLDBERG && S3 == 4) - nom = 2 * (2*tv + 2 * ts * (cgi.gpdata->area-1)); + if(GOLDBERG) { + ld area = PIU(cgi.gpdata->area); + + nom = 2 * (2*tv + (S3-2) * ts * (area-1)); + } #endif int worldsize;