mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 05:44:51 +00:00
also fix serialization
This commit is contained in:
@@ -312,9 +312,9 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param value FIXED8 value
|
||||
* @throws IOException
|
||||
*/
|
||||
public void writeFIXED8(float value) throws IOException {
|
||||
final int divisor = 1 << 8;
|
||||
int beforePoint = (int) value;
|
||||
public void writeFIXED8(float value) throws IOException {
|
||||
int valueInt = (int) (value * (1 << 8));
|
||||
int beforePoint = (int) valueInt >> 8;
|
||||
int afterPoint = (int) valueInt % (1 << 8);
|
||||
writeUI8(afterPoint);
|
||||
writeSI8(beforePoint);
|
||||
|
||||
Reference in New Issue
Block a user