We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564474a commit 6d9e755Copy full SHA for 6d9e755
code/__DEFINES/maths.dm
@@ -109,7 +109,7 @@
109
#define TORADIANS(degrees) ((degrees) * 0.0174532925)
110
111
/// Gets shift x that would be required the bitflag (1<<x)
112
-#define TOBITSHIFT(bit) ( log(2, bit) )
+#define TOBITSHIFT(bit) ( round(log(2, bit), 1) )
113
114
// Will filter out extra rotations and negative rotations
115
// E.g: 540 becomes 180. -180 becomes 180.
0 commit comments