Skip to content

Commit

Permalink
Update TOBITSHIFT to 515 tgstation latest to fix slot index error
Browse files Browse the repository at this point in the history
  • Loading branch information
Koshenko committed May 17, 2024
1 parent 428b74c commit 34fc9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/__DEFINES/maths.dm
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
#define TORADIANS(degrees) ((degrees) * 0.0174532925)

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

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

0 comments on commit 34fc9be

Please sign in to comment.