//
// GJBaseGameLayer::getModifiedDelta from 0x1001fe538 to 0x1001fe5c4 (140 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x1001fe66c
// > LevelEditorLayer::updateEditor @ 0x100358330
//
// 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 __fastcall GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *a1, float a2)
{
float m_timeWarp; // s2
double v4; // d2
float v5; // s0
double v6; // d1
float v7; // s0
double result; // d0
if ( a1->m_resumeTimer >= 1 )
{
cocos2d::CCDirector::sharedDirector();
--a1->m_resumeTimer;
a2 = 0.0;
}
m_timeWarp = a1->m_gameState.m_timeWarp;
if ( m_timeWarp >= 1.0 )
v4 = 0.00416666667;
else
v4 = m_timeWarp * 0.00416666667;
v5 = a1->m_extraDelta + a2;
v6 = v5;
v7 = v5 / v4;
result = v4 * (double)(int)llroundf(v7);
a1->m_extraDelta = v6 - result;
return result;
}