1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 19:07:40 +00:00

line animation records in reverse if lvspeed < 0, and no longer goes to far

This commit is contained in:
Zeno Rogue
2019-06-16 15:26:53 +02:00
parent e8becb8ba2
commit daeffa3647
2 changed files with 5 additions and 2 deletions

View File

@@ -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();
}