1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

line animations take extra_line_steps into account

This commit is contained in:
Zeno Rogue 2019-06-17 08:12:36 +02:00
parent 7b547a6a77
commit 687b19df43

View File

@ -708,9 +708,10 @@ bool record_animation() {
apply();
conformal::configure();
if(conformal::on) {
int len = (isize(conformal::v)-1);
conformal::phase = len * i * 1. / noframes;
ld len = (isize(conformal::v)-1) + 2 * conformal::extra_line_steps;
conformal::phase = len * i / (noframes-1);
if(conformal::lvspeed < 0) conformal::phase = len - conformal::phase;
conformal::phase -= conformal::extra_line_steps;
conformal::movetophase();
}