MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetGameTime

Method SetGameTime

ogsr_engine/xr_3da/Environment.cpp:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199void CEnvironment::ChangeGameTime(float game_time) { fGameTime = NormalizeTime(fGameTime + game_time); };
200
201void CEnvironment::SetGameTime(float game_time, float time_factor)
202{
203 if (b_wfx)
204 wfx_time -= TimeDiff(fGameTime, game_time);
205
206 fGameTime = game_time;
207 fTimeFactor = time_factor;
208}
209
210float CEnvironment::NormalizeTime(float tm)
211{

Callers 5

set_time_factorFunction · 0.80
AdvanceGameTimeFunction · 0.80
OnFrameMethod · 0.80
RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected