MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / TestGlobalTimeInterval

Function TestGlobalTimeInterval

TombEngine/Specific/clock.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool TestGlobalTimeInterval(unsigned int intervalGameFrames, unsigned int offsetGameFrames)
122{
123 if (offsetGameFrames >= intervalGameFrames)
124 {
125 TENLog("TestGlobalTimeInterval(): interval must be greater than offset.", LogLevel::Warning);
126 return false;
127 }
128
129 return ((GlobalCounter % intervalGameFrames) == offsetGameFrames);
130}
131
132unsigned int SecToGameFrames(float sec)
133{

Callers 3

ControlFishSwarmFunction · 0.85
SpawnSteamParticleFunction · 0.85
Streamer.cppFile · 0.85

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected