benilla-re systems structs docs

s_traceCellsPerYard

global · terrain

Address
0x8107a4 · 4 bytes, up to 0x8107a7
Type
float
Meaning
Holds 0.24 (0x3e75c28f), cells per yard, for the segment trace
Confidence
verified, proof one
Finding
terrain/trace#terrain-walk

Finding: Terrain walk in terrain: trace

0x69c320(start, end, t, mask) turns both ends into cells, row from x and column from y as round(0.24·(17066.666 − c) − 0.5), and fills the cell list by one of four walks: a run along one column when the y extent is below 2.3841858e-7 or both ends share a column, a run along one row likewise for x, and otherwise a line walk along the larger extent. It then tests the listed cells with 0x69c920.

The derivation is in the doc.