benilla-re systems structs docs

DrawGroupLiquid

function · terrain · host

Address
0x6b62e0 · 283 bytes, up to 0x6b63fa
Signature
void __thiscall (void *this, uint32_t arg2)
Meaning
Draws a group's liquid by the type of its first liquid tile
Confidence
verified, proof one
Finding
terrain/groupdraw#group-liquid

Finding: Group liquid in terrain: map object draw

0x6b4060(group, flag) draws a group's liquid. The type is that of the first tile with liquid (0x6ba970); types 0, 4 and 8 draw water, 2, 3, 6 and 7 draw magma or slime, and the rest nothing. Water is drawn with blend 2 and no depth write, by the interior draw for a group without flags 0x48 and the exterior draw for the rest. The flag is the parity flag the flood stored; it is kept in 0xce269c.

The derivation is in the doc.

Callers 1

Callees 13

Calls and jumps by a bare address, from tables/calls.tsv.