mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-03 06:24:30 +00:00
magic texture adjustment: fixed the algorithm
This commit is contained in:
1 parent
1b3de574a9
commit
f0bb13e17c
1 file changed
+1
-1
+1
-1
@@ -596,7 +596,7 @@ void applyMagic() {
|
||||
|
||||
bool failed = false;
|
||||
|
||||
for(ld delta = 1; delta > 1e-9; delta *= (failed ? -.7 : 1.2)) {
|
||||
for(ld delta = 1; abs(delta) > 1e-9; delta *= (failed ? -.7 : 1.2)) {
|
||||
p.apply(delta);
|
||||
ld nq = magic_quality();
|
||||
if(nq < cq) {
|
||||
|
||||
Reference in new issue
Block a user