mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50: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 random_spin() {
|
||||
if(GDIM == 2) return spin(randd() * 2 * M_PI);
|
||||
if(WDIM == 2) return spin(randd() * 2 * M_PI);
|
||||
else {
|
||||
ld alpha2 = acos(randd() * 2 - 1);
|
||||
ld alpha = randd() * 2 * M_PI;
|
||||
|
Loading…
Reference in New Issue
Block a user