mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +00:00
ads-game:: better swap
This commit is contained in:
parent
2f672bc4f3
commit
8e23039fc0
@ -251,9 +251,9 @@ void handle_crashes() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hyperpoint h1 = normalize(h);
|
hyperpoint h1 = normalize(h);
|
||||||
swap(h1[2], h1[3]);
|
|
||||||
bool crashed = false;
|
bool crashed = false;
|
||||||
hybrid::in_actual([&] {
|
hybrid::in_actual([&] {
|
||||||
|
swap(h1[2], h1[3]);
|
||||||
ads_point rel = ads_inverse(current * vctrV) * ads_point(h1, 0);
|
ads_point rel = ads_inverse(current * vctrV) * ads_point(h1, 0);
|
||||||
cell *c = vctr;
|
cell *c = vctr;
|
||||||
virtualRebase(c, rel.h);
|
virtualRebase(c, rel.h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user