| 446 | } |
| 447 | |
| 448 | void SetValue(float mult, std::string& out) |
| 449 | { |
| 450 | if (!GWorld) |
| 451 | { |
| 452 | out = "timemult: no active world"; |
| 453 | return; |
| 454 | } |
| 455 | GWorld->SetAcceleratedTime(mult); |
| 456 | char buf[64]; |
| 457 | snprintf(buf, sizeof(buf), "timemult: requested %.2fx, engine reports %.2fx", mult, GWorld->GetAcceleratedTime()); |
| 458 | out = buf; |
| 459 | LOG_INFO(Mission, "DebugCheats::TimeMultiplier -> {}", out); |
| 460 | } |
| 461 | |
| 462 | void Invoke(std::string_view args, std::string& out) |
| 463 | { |