Name PETS_RemoveDistantPets' squared-distance parameter (nMaxDistanceSq)
Ghidra v1809 · 6c26878
The generic nParam of PETS_RemoveDistantPets is a squared distance limit: the body computes GetDistanceSquaredXY between the owner and each pet unit and removes the pet when nParam < that value. The only caller, PETS_ManagePetsByType, pushes the constant 0x640 (1600 = 40 squared) at 0x0057554a. The existing description says 'tiles', but the comparison is on squared units, so the name carries the Sq suffix. Rename only; the type stays int32_t.
Changes 1, applied together
Rename variable
win 0x00575380 Stack[0xc]namenParam→nMaxDistanceSq