mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-28 06:39:55 +00:00
line:: animation to current view stops at actual current view, not cell center (to test)
This commit is contained in:
parent
ba1708fddd
commit
f7a5d8fa70
@ -298,7 +298,7 @@ namespace conformal {
|
|||||||
v.resize(0);
|
v.resize(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void create(cell *start, cell *target) {
|
void create(cell *start, cell *target, transmatrix last) {
|
||||||
|
|
||||||
if(target == start) {
|
if(target == start) {
|
||||||
addMessage("Must go a distance from the starting point");
|
addMessage("Must go a distance from the starting point");
|
||||||
@ -322,6 +322,8 @@ namespace conformal {
|
|||||||
v.push_back(m);
|
v.push_back(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v.back()->at = last;
|
||||||
|
|
||||||
int Q = isize(v)-1;
|
int Q = isize(v)-1;
|
||||||
// virtualRebase(v[0], false);
|
// virtualRebase(v[0], false);
|
||||||
// virtualRebase(v[Q], false);
|
// virtualRebase(v[Q], false);
|
||||||
@ -356,11 +358,12 @@ namespace conformal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void create_playerpath() {
|
void create_playerpath() {
|
||||||
create(currentmap->gamestart(), cwt.at);
|
create(currentmap->gamestart(), cwt.at, Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void create_recenter_to_view() {
|
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() {
|
void movetophase() {
|
||||||
|
Loading…
Reference in New Issue
Block a user