mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
2d3d:: space rocks no longer try to 'randomly spin' into space
This commit is contained in:
parent
6ba308cac5
commit
26a10b015a
@ -252,7 +252,7 @@ transmatrix cspin(int a, int b, ld alpha) {
|
|||||||
transmatrix spin(ld alpha) { return cspin(0, 1, alpha); }
|
transmatrix spin(ld alpha) { return cspin(0, 1, alpha); }
|
||||||
|
|
||||||
transmatrix random_spin() {
|
transmatrix random_spin() {
|
||||||
if(GDIM == 2) return spin(randd() * 2 * M_PI);
|
if(WDIM == 2) return spin(randd() * 2 * M_PI);
|
||||||
else {
|
else {
|
||||||
ld alpha2 = acos(randd() * 2 - 1);
|
ld alpha2 = acos(randd() * 2 - 1);
|
||||||
ld alpha = randd() * 2 * M_PI;
|
ld alpha = randd() * 2 * M_PI;
|
||||||
|
Loading…
Reference in New Issue
Block a user