//
// GJBaseGameLayer::getModifiedDelta from 0x476990 to 0x476a1a (138 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateEditor @ 0x37621c
// > GJBaseGameLayer::update @ 0x497126
//
// 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
//
double GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *a1, float a2)
{
double v4; // d9
double v5; // d8
float m_timeWarp; // s14
float v7; // s16
double result; // r0
if ( a1->m_resumeTimer > 0 )
{
cocos2d::CCDirector::sharedDirector();
a2 = 0.0;
--a1->m_resumeTimer;
}
v4 = 0.00416666667;
v5 = a2 + a1->m_extraDelta;
m_timeWarp = a1->m_gameState.m_timeWarp;
if ( m_timeWarp < 1.0 )
v4 = m_timeWarp * 0.00416666667;
v7 = v5;
result = (double)lroundf() * v4;
a1->m_extraDelta = v7 - result;
return result;
}