s_traceCellCount
global · terrain
- Address
0xc89f40· 4 bytes, up to0xc89f43- Type
uint32_t- Meaning
- Counts the cells a segment walk listed
- 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.