1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

2d3d:: space rocks no longer try to 'randomly spin' into space

This commit is contained in:
Zeno Rogue 2019-05-11 19:44:58 +02:00
parent 6ba308cac5
commit 26a10b015a

View File

@ -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;