From daeffa3647b172c9e3ec487a0432a0e8fb94b93a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 16 Jun 2019 15:26:53 +0200 Subject: [PATCH] line animation records in reverse if lvspeed < 0, and no longer goes to far --- menus.cpp | 3 ++- screenshot.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/menus.cpp b/menus.cpp index d01b8b0f..f4d9a74d 100644 --- a/menus.cpp +++ b/menus.cpp @@ -27,7 +27,8 @@ void showOverview() { mouseovers += " "; mouseovers += XLAT(" kills: %1/%2", its(tkills()), its(killtypes())); mouseovers += XLAT(" $$$: %1", its(gold())); - if(landUnlocked(laHell)) { + if(randomPatternsMode) ; + else if(landUnlocked(laHell)) { int i1, i2; countHyperstoneQuest(i1, i2); mouseovers += XLAT(" Hyperstone: %1/%2", its(i1), its(i2)); } diff --git a/screenshot.cpp b/screenshot.cpp index 7899f9d7..add40c4e 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -708,7 +708,9 @@ bool record_animation() { apply(); conformal::configure(); if(conformal::on) { - conformal::phase = isize(conformal::v) * i * 1. / noframes; + int len = (isize(conformal::v)-1); + conformal::phase = len * i * 1. / noframes; + if(conformal::lvspeed < 0) conformal::phase = len - conformal::phase; conformal::movetophase(); }