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

Method Execute

ogsr_engine/xrGame/console_commands.cpp:1113–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111 CCC_TimeFactorSingle(LPCSTR N, float* V, float _min = 0.f, float _max = 1.f) : CCC_Float(N, V, _min, _max){};
1112
1113 virtual void Execute(LPCSTR args)
1114 {
1115 CCC_Float::Execute(args);
1116
1117 if (!g_pGameLevel)
1118 return;
1119
1120 if (!Level().Server)
1121 return;
1122
1123 if (!Level().Server->game)
1124 return;
1125
1126 Level().Server->game->SetGameTimeFactor(g_fTimeFactor);
1127 }
1128};
1129
1130#ifdef DEBUG

Callers

nothing calls this directly

Calls 2

ExecuteFunction · 0.50
SetGameTimeFactorMethod · 0.45

Tested by

no test coverage detected