From ebe57688adad50aab851e6ad1ab4caf8765f41e8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 9 Aug 2018 19:27:52 +0200 Subject: [PATCH] several features which actually were in 10.4p but not commited --- config.cpp | 3 +++ irregular.cpp | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config.cpp b/config.cpp index 4be896b1..7bce09db 100644 --- a/config.cpp +++ b/config.cpp @@ -1492,6 +1492,9 @@ int read_config_args() { else if(argis("-els")) { shift(); conformal::extra_line_steps = argf(); } + else if(argis("-stretch")) { + PHASEFROM(2); shift(); vid.stretch = argf(); + } TOGGLE('o', vid.usingGL, switchGL()) TOGGLE('f', vid.full, switchFullscreen()) else return 1; diff --git a/irregular.cpp b/irregular.cpp index 4c60b775..65d30786 100644 --- a/irregular.cpp +++ b/irregular.cpp @@ -2,7 +2,7 @@ namespace hr { namespace irr { bool on; -ld density = 6; +ld density = 2; ld quality = .2; int place_attempts = 10; int rearrange_max_attempts = 50; @@ -416,7 +416,11 @@ bool step(int delta) { p1.spin.resize(N); for(int j=0; j= isize(cells)) { + runlevel = 0; + return false; + } + bool found = false; for(int k=0; k < isize(cells[i1].vertices); k++) if(cells[i1].neid[k] == i) found = true, p1.spin[j] = k;