//
// GJBaseGameLayer::getScaledGroundHeight from 0x99f380 to 0x99f3a8 (40 bytes)
//
// 1 xrefs:
// > ??> @ 0x927d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:06 +0000
//
float __fastcall GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *this, float result)
{
float v2; // s1
v2 = *((float *)this + 107);
if ( v2 != 1.0 )
return floorf((float)(result / v2) / 30.0) * 30.0;
return result;
}