diff --git a/377-Construct-Map-Region.mediawiki b/377-Construct-Map-Region.mediawiki index 6b030dc..6f09630 100644 --- a/377-Construct-Map-Region.mediawiki +++ b/377-Construct-Map-Region.mediawiki @@ -31,10 +31,11 @@ If the tile exists then a 1 gets written to the output stream as a 1 otherwise a If the tile does exist then you would follow that 1 bit with 26 bits of information about the tile. -int l9 = info >> 24 & 3; -int j10 = info >> 1 & 3; -int l10 = info >> 14 & 0x3ff; -int j11 = info >> 3 & 0x7ff; + int info = inStream.readBits(26); + int unknown = info >> 24 & 3; + int unknown = info >> 1 & 3; + int regionX = info >> 14 & 0x3ff; + int regionY = info >> 3 & 0x7ff; === Implementation ===