| 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 |
nothing calls this directly
no test coverage detected