| 638 | { |
| 639 | role.position = PRPGunner; |
| 640 | _playerRoles.Add(role); |
| 641 | } |
| 642 | } |
| 643 | else |
| 644 | { |
| 645 | if (type->HasGunner()) |
| 646 | { |
| 647 | role.position = PRPGunner; |
| 648 | role.leader = false; |
| 649 | _playerRoles.Add(role); |
| 650 | role.position = PRPDriver; |
| 651 | } |
| 652 | else |
| 653 | { |
| 654 | role.position = PRPNone; |
| 655 | } |
| 656 | role.leader = uInfo.leader; |
| 657 | _playerRoles.Add(role); |
| 658 | } |
| 659 | } |
| 660 | break; |
| 661 | } |
| 662 | } |
| 663 | } |
| 664 | |
| 665 | // send mission description and roles |
| 666 | for (int i = 0; i < _players.Size(); i++) |
| 667 | { |
| 668 | NetworkPlayerInfo& info = _players[i]; |
| 669 | if (info.state < NGSCreate) |
| 670 | { |
| 671 | continue; |
| 672 | } |
| 673 | SendMissionInfo(info.dpid); |
| 674 | info.state = NGSPrepareSide; |
| 675 | SetPlayerState(info.dpid, NGSPrepareSide); |
| 676 | info.missionFileValid = false; |
| 677 | } |
| 678 | } |
nothing calls this directly
no test coverage detected