MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / loadInitTime

Function loadInitTime

TheForceEngine/TFE_Input/replay.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void loadInitTime()
181 {
182 TFE_DarkForces::s_curTick = inputEvents[0].curTick;
183 TFE_DarkForces::s_prevTick = inputEvents[0].prevTick;
184 TFE_DarkForces::s_deltaTime = inputEvents[0].deltaTime;
185 TFE_DarkForces::s_timeAccum = inputEvents[0].timeAccum;
186 TFE_DarkForces::s_playerTick = inputEvents[0].plTick;
187 TFE_DarkForces::s_prevPlayerTick = inputEvents[0].plPrevTick;
188 memcpy(TFE_DarkForces::s_frameTicks, inputEvents[0].frameTicks, sizeof(fixed16_16) * TFE_ARRAYSIZE(inputEvents[0].frameTicks));
189 }
190
191 void recordReplaySeed()
192 {

Callers 1

loadReplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected