mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-12 11:43:01 +00:00
fixed units in matrix parser
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user