| 2037 | } |
| 2038 | |
| 2039 | void CStaticMapMain::ProcessCheats() |
| 2040 | { |
| 2041 | #if _ENABLE_CHEATS |
| 2042 | auto& input = InputSubsystem::Instance(); |
| 2043 | if (input.GetCheat1ToDo(SDL_SCANCODE_A)) |
| 2044 | { |
| 2045 | _showUnits = !_showUnits; |
| 2046 | } |
| 2047 | if (input.GetCheat2ToDo(SDL_SCANCODE_A)) |
| 2048 | { |
| 2049 | _showSensors = !_showSensors; |
| 2050 | } |
| 2051 | if (input.GetCheat1ToDo(SDL_SCANCODE_D)) |
| 2052 | { |
| 2053 | _showTargets = !_showTargets; |
| 2054 | } |
| 2055 | if (input.GetCheat2ToDo(SDL_SCANCODE_V)) |
| 2056 | { |
| 2057 | _showVariables = !_showVariables; |
| 2058 | } |
| 2059 | #endif |
| 2060 | CStaticMap::ProcessCheats(); |
| 2061 | } |
| 2062 | |
| 2063 | void CStaticMapMain::OnLButtonDown(float x, float y) |
| 2064 | { |
nothing calls this directly
no test coverage detected