| 136 | return entry->GetInt() != 0; |
| 137 | } |
| 138 | |
| 139 | // Network client itself |
| 140 | |
| 141 | NetworkClient::NetworkClient(NetworkManager* parent, RString address, RString password, bool botClient) |
| 142 | : NetworkComponent(parent) |
| 143 | { |
| 144 | Verify(Init(address, password, botClient)); |
| 145 | _state = NGSCreating; |
| 146 | _serverState = NGSCreating; |
| 147 | |
| 148 | _connectionQuality = CQGood; |
| 149 | |
| 150 | _localPlayerName = Glob.header.playerName; |
| 151 | |
| 152 | _missionFileValid = false; |
| 153 | |
| 154 | _gameMaster = false; |
| 155 | _admin = false; |
| 156 | _selectMission = false; |
| 157 | _voteMission = false; |
| 158 | |
| 159 | _controlsPaused = false; |
| 160 | _jip = false; |
| 161 | _pendingSelectPlayer = false; |
| 162 | _missionRawLastRequestTime = 0; |
| 163 | _missionRawLastSegmentTime = 0; |
| 164 | _missionRawExpectedSize = 0; |
| 165 | _missionRawHighestReceivedSegment = -1; |
| 166 | _missionRawRequestedDuplicateUniqueSegments = 0; |
| 167 | _missionTransferHeaderStatsLogged = false; |
| 168 | |
| 169 | _soundId = 0; // incremented for each PlaySound |
| 170 | |
| 171 | GetValue(_chatSound, Pars >> "CfgInGameUI" >> "Chat" >> "sound"); |
| 172 |
nothing calls this directly
no test coverage detected