//
// GJBaseGameLayer::getScaledGroundHeight from 0x85b298 to 0x85b2c0 (40 bytes)
//
// 1 xrefs:
// > ??> @ 0x6c7c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *a1, float a2)
{
float m_targetCameraZoom; // s1
m_targetCameraZoom = a1->m_gameState.m_targetCameraZoom;
if ( m_targetCameraZoom != 1.0 )
return floorf((float)(a2 / m_targetCameraZoom) / 30.0) * 30.0;
return a2;
}