1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

intra:: fix

This commit is contained in:
Zeno Rogue 2021-09-16 22:04:24 +02:00
parent 5f4e03b1da
commit f7bcadab50

View File

@ -71,10 +71,10 @@ hyperpoint portal_data::to_poco(hyperpoint h) const {
hyperpoint portal_data::from_poco(hyperpoint h) const {
if(prod && kind == 1) {
ld d = h[2];
ld xd = h[2];
h[2] = 1;
auto z = product_decompose(h).first;
return h * exp(d+d-z);
return h * exp(d+xd-z);
}
else if(prod && kind == 0) {
auto h0 = h;