From f7a5d8fa70141e09857baf3a49ce5ccb42cd8be7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 3 Jun 2019 14:47:32 +0200 Subject: [PATCH] line:: animation to current view stops at actual current view, not cell center (to test) --- conformal.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/conformal.cpp b/conformal.cpp index 86ee420b..0577beb0 100644 --- a/conformal.cpp +++ b/conformal.cpp @@ -298,7 +298,7 @@ namespace conformal { v.resize(0); } - void create(cell *start, cell *target) { + void create(cell *start, cell *target, transmatrix last) { if(target == start) { addMessage("Must go a distance from the starting point"); @@ -321,6 +321,8 @@ namespace conformal { m->base = c; v.push_back(m); } + + v.back()->at = last; int Q = isize(v)-1; // virtualRebase(v[0], false); @@ -356,11 +358,12 @@ namespace conformal { } void create_playerpath() { - create(currentmap->gamestart(), cwt.at); + create(currentmap->gamestart(), cwt.at, Id); } void create_recenter_to_view() { - create(path_for_lineanimation[0], centerover.at ? centerover.at : cwt.at); + cell *c = centerover.at ? centerover.at : cwt.at; + create(path_for_lineanimation[0], c, inverse(ggmatrix(c))); } void movetophase() {