benilla-re systems structs docs

s_screenDenomB

global · minimap

Address
0x86f6bc · 4 bytes, up to 0x86f6bf
Type
float
Meaning
Holds 1066.667, the divisor of the outdoor x offset
Confidence
verified, proof one
Finding
minimap/coordinates#screen-scale

Finding: Screen scale in minimap: coordinates

WorldToScreenScale(map, player, offset, scale, records) prepares the outdoor tile block and the scale that places it. It stores the player position and the map, runs the blip pass, and finds the tiles of the player moved half a tile each way; an axis where both land in one tile takes the next tile (the previous at the grid edge), so the block is 2 by 2. It reloads the tiles when mask 0x1 of the dirty word is set or a cached block index differs, and returns 1. offset[0] is the first tile's world y less the player's, over 1066.667; offset[1] the world x less the player's, over 1066.667; scale is half the outdoor chunk count times 33.3333, over 1066.667.

The derivation is in the doc.