//
// GJBaseGameLayer::getScaledGroundHeight from 0x46fc8c to 0x46fcce (66 bytes)
//
// 0 xrefs:
//
// 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; // s14
float v3; // s15
m_targetCameraZoom = a1->m_gameState.m_targetCameraZoom;
v3 = a2;
if ( m_targetCameraZoom != 1.0 )
return floorf((float)(a2 / m_targetCameraZoom) / 30.0) * 30.0;
return v3;
}