Return if given message type is kind of transport update When driver of transport changes, ownership of whole transport is changed.
| 237 | return srv ? srv->GetFirstBanId() : RString(); |
| 238 | } |
| 239 | |
| 240 | bool GetServerLocked() |
| 241 | { |
| 242 | NetworkServer* srv = GNetworkManager.GetServer(); |
| 243 | return srv && srv->IsSessionLocked(); |
| 244 | } |
| 245 | |
| 246 | // Return if given message type is kind of transport update |
| 247 | // When driver of transport changes, ownership of whole transport is changed. |
| 248 | bool IsUpdateTransport(NetworkMessageType type) |
| 249 | { |
| 250 | switch (type) |
| 251 | { |
| 252 | case NMTUpdateTransport: |
| 253 | case NMTUpdateTankOrCar: |
| 254 | case NMTUpdateTank: |
| 255 | case NMTUpdateCar: |
| 256 | case NMTUpdateMotorcycle: |
| 257 | case NMTUpdateAirplane: |
| 258 | case NMTUpdateHelicopter: |
| 259 | case NMTUpdateParachute: |
no outgoing calls
no test coverage detected