1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-05 11:12:49 +00:00

fixed lineanimation for arb

This commit is contained in:
Zeno Rogue 2020-01-15 18:19:59 +01:00
parent 19769feaaf
commit 7b3c835429
2 changed files with 7 additions and 4 deletions

View File

@ -205,11 +205,12 @@ EX namespace history {
on = true; on = true;
if(!quotient) try { if(!quotient && !arb::in()) try {
path_for_lineanimation = build_shortest_path(start, target); auto p = build_shortest_path(start, target);
path_for_lineanimation = p;
} }
catch(hr_shortest_path_exception&) { catch(hr_shortest_path_exception&) {
addMessage("Error: could not build a path"); addMessage("Could not build a path");
return; return;
} }
@ -283,6 +284,8 @@ EX namespace history {
View = inverse(v[ph]->at); View = inverse(v[ph]->at);
if(arb::in() && v[ph]->base->master->emeraldval) View = Mirror * View;
hyperpoint now = v[ph]->at * C0; hyperpoint now = v[ph]->at * C0;
hyperpoint next = calc_relative_matrix(v[ph+1]->base, v[ph]->base, C0) * hyperpoint next = calc_relative_matrix(v[ph+1]->base, v[ph]->base, C0) *

View File

@ -197,7 +197,7 @@ EX namespace models {
} }
if(centerover && !history::on) if(centerover && !history::on)
if(isize(history::path_for_lineanimation) == 0 || (quotient && history::path_for_lineanimation.back() != centerover)) { if(isize(history::path_for_lineanimation) == 0 || ((quotient || arb::in()) && history::path_for_lineanimation.back() != centerover)) {
history::path_for_lineanimation.push_back(centerover); history::path_for_lineanimation.push_back(centerover);
} }