1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 18:10:35 +00:00

fixed units in matrix parser

This commit is contained in:
Zeno Rogue 2023-08-08 16:30:27 +02:00
parent e658a471da
commit c914bf86e0

View File

@ -499,7 +499,7 @@ transmatrix exp_parser::parsematrix(int prio) {
at += 4; at += 4;
ld angle = validate_real(parsepar()); ld angle = validate_real(parsepar());
if(unit == -1) return lorentz(c0, c1, angle); if(unit == -1) return lorentz(c0, c1, angle);
else return cspin(c0, c1, angle); else return cspin(c0, c1, unit * angle);
} }
} }
transmatrix res; transmatrix res;