mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-29 13:32:12 +00:00
fixed
This commit is contained in:
@@ -36,8 +36,8 @@ export class PatternDecoder {
|
||||
throw new Error("The pattern versions are different.");
|
||||
}
|
||||
|
||||
const packed = (bytes[2] << 8) | bytes[1];
|
||||
const scale = packed & 0x7;
|
||||
const packed = bytes[1] | (bytes[2] << 8);
|
||||
const scale = packed & 0x07;
|
||||
const width = (packed >> 3) & 0x7f;
|
||||
const height = (packed >> 10) & 0x3f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user