| 476 | COMMAND(mapshot, ""); |
| 477 | |
| 478 | void screenshotpreview(int *res) |
| 479 | { |
| 480 | static int lastres = 240; |
| 481 | defformatstring(buf)("packages" PATHDIVS "maps" PATHDIVS "%spreview" PATHDIVS "%s.jpg", securemapcheck(getclientmap(), false) ? "official" PATHDIVS : "", behindpath(getclientmap())); |
| 482 | mapscreenshot(buf, false, 1, 1.0f, (lastres = clamp(((*res ? *res : lastres) / 48) * 48, 144, 480)), 80); |
| 483 | reloadtexture(*textureload(buf, 3)); |
| 484 | } |
| 485 | COMMAND(screenshotpreview, "i"); |
| 486 | |
| 487 | bool needsautoscreenshot = false; |
nothing calls this directly
no test coverage detected