| 1645 | } |
| 1646 | |
| 1647 | void CStaticMapArcade::ProcessCheats() |
| 1648 | { |
| 1649 | #if _ENABLE_CHEATS |
| 1650 | auto& input = InputSubsystem::Instance(); |
| 1651 | if (input.GetActionToDo(UAFire)) |
| 1652 | { |
| 1653 | QOFStream out; |
| 1654 | |
| 1655 | float mouseX = 0.5 + input.GetCursorX() * 0.5; |
| 1656 | float mouseY = 0.5 + input.GetCursorY() * 0.5; |
| 1657 | Vector3 pos = ScreenToWorld(DrawCoord(mouseX, mouseY)); |
| 1658 | |
| 1659 | char buf[1024]; |
| 1660 | snprintf(buf, sizeof(buf), "[%.3f,%.3f,%.3f]\r\n", pos.X(), pos.Z(), pos.Y()); |
| 1661 | out.write(buf, strlen(buf)); |
| 1662 | |
| 1663 | out.export_clip("clipboard.txt"); |
| 1664 | } |
| 1665 | #endif |
| 1666 | |
| 1667 | CStaticMapArcadeViewer::ProcessCheats(); |
| 1668 | } |
| 1669 | |
| 1670 | static int CharRPos(const char* t, char c) |
| 1671 | { |
nothing calls this directly
no test coverage detected