| 77 | } |
| 78 | |
| 79 | if (GetNetworkManager().GetGameState() > NGSNone) |
| 80 | { |
| 81 | if (auto* ctrl = dynamic_cast<CActiveText*>(display->GetCtrl(IDC_DEBRIEFING_RESTART))) |
| 82 | ctrl->SetText(LocalizeString(IDS_DISP_CLIENT_READY)); |
| 83 | if (auto* ctrl = dynamic_cast<CActiveText*>(display->GetCtrl(IDC_CANCEL))) |
| 84 | ctrl->SetText(LocalizeString(IDS_DISP_DISCONNECT)); |
| 85 | } |
| 86 | } |
| 87 | } // namespace |
| 88 | |
| 89 | DisplayMainMap::DisplayMainMap(ControlsContainer* parent) : DisplayMap(parent, "RscDisplayMainMap") |
| 90 | { |
| 91 | _enableDisplay = false; |
| 92 | |
| 93 | ShowWarrant(false); |
| 94 | ShowWalkieTalkie(false); |
| 95 | ShowGPS(true); |
| 96 | for (int i = sensorsMap.Size() - 1; i >= 0; i--) |
| 97 | { |
| 98 | Vehicle* veh = sensorsMap[i]; |
| 99 | if (!veh) |
| 100 | { |
| 101 | continue; |
| 102 | } |
| 103 | Detector* det = dyn_cast<Detector>(veh); |
| 104 | PoseidonAssert(det); |
| 105 | if (det->IsActive() && !det->IsRepeating()) |
| 106 | { |
| 107 | continue; |
| 108 | } |
| 109 | if (det->GetActivationBy() >= ASAAlpha && det->GetActivationBy() <= ASAJuliet) |
nothing calls this directly
no test coverage detected