Skip to content

Commit 6d9e755

Browse files
authored
fix floating point bs (#347)
1 parent 564474a commit 6d9e755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/__DEFINES/maths.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#define TORADIANS(degrees) ((degrees) * 0.0174532925)
110110

111111
/// Gets shift x that would be required the bitflag (1<<x)
112-
#define TOBITSHIFT(bit) ( log(2, bit) )
112+
#define TOBITSHIFT(bit) ( round(log(2, bit), 1) )
113113

114114
// Will filter out extra rotations and negative rotations
115115
// E.g: 540 becomes 180. -180 becomes 180.

0 commit comments

Comments
 (0)