mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
...
This commit is contained in:
parent
bccbe88f87
commit
2dbeda3c90
1 changed files with 2 additions and 1 deletions
|
|
@ -458,7 +458,8 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function rotDegreesToChar(float $deg) : int{
|
||||
return ((int)(($deg / 360.0) * 256.0)) & 0xFF;
|
||||
$v = ((int)(($deg / 360.0) * 256.0)) & 0xFF;
|
||||
return $v >= 128 ? $v - 256 : $v;
|
||||
}
|
||||
|
||||
public static function rotCharToDegrees(int $char) : float{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue