mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-27 10:30:36 +00:00
fixed units in matrix parser
This commit is contained in:
parent
e658a471da
commit
c914bf86e0
2
util.cpp
2
util.cpp
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user