MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / playback

Method playback

Source/GameData.cpp:194–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void sGameRecorded::playback() {
195 std::lock_guard<std::mutex> lock(mLockMtx);
196
197 //
198 g_Fodder->mMission_EngineTicks = mEngineTicks;
199 g_Fodder->mInterruptTick = mInputTicks;
200 mTick = 0;
201 mTickDisabled = false;
202 g_Fodder->mRandom.setSeed(mSeed[0], mSeed[1], mSeed[2], mSeed[3]);
203
204 *g_Fodder->mParams = *mParams;
205}
206
207void sGameRecorded::AddVideoTick(const uint64 pTick) {
208 std::lock_guard<std::mutex> lock(mLockMtx);

Callers 2

StartMethod · 0.80
RunTestsMethod · 0.80

Calls 1

setSeedMethod · 0.45

Tested by 1

RunTestsMethod · 0.64