//
// GJBaseGameLayer::updateTimeWarp from 0x46b6d8 to 0x46b738 (96 bytes)
//
// 1 xrefs:
// > PlayLayer::updateTimeWarp @ 0x30e60c
//
// 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
//
void GJBaseGameLayer::updateTimeWarp(GJBaseGameLayer *a1, float a2)
{
float v2; // s15
v2 = a2;
if ( a2 > 2.0 )
{
v2 = 2.0;
}
else if ( a2 <= 0.1 )
{
v2 = 0.1;
}
else if ( a2 > 2.0 )
{
v2 = 2.0;
}
a1->m_gameState.m_timeWarp = v2;
a1->m_gameState.m_queuedTimeWarp = 0.0;
if ( v2 == 1.0 )
((void (__fastcall *)(_DWORD, _DWORD))a1->applyTimeWarp)(a1, 1.0);
}