1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +00:00

product:: fixed straightDownSeek

This commit is contained in:
Zeno Rogue 2019-08-19 13:56:33 +02:00
parent 38ee044e70
commit e8cdb9e616

View File

@ -1261,8 +1261,10 @@ EX void spinEdge(ld aspd) {
else if((WDIM == 2 || prod) && GDIM == 3 && vid.fixed_yz && !CAP_ORIENTATION) {
aspd = 999999;
if(straightDownSeek) {
if(straightDownPoint[0])
downspin = models::rotation * degree - atan2(straightDownPoint[0], straightDownPoint[1]);
auto sdp = straightDownPoint;
if(prod) sdp = LPV * product::inverse_exp(sdp);
if(sdp[0])
downspin = models::rotation * degree - atan2(sdp[0], sdp[1]);
}
else {
if(LPV[0][2])