| 96 | } |
| 97 | } |
| 98 | void GameImpl::dropPlayers() |
| 99 | { |
| 100 | for ( int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i ) |
| 101 | { |
| 102 | if ( BW::BWDATA::playerStatusArray[i] & 0x10000 ) |
| 103 | { |
| 104 | int iplr = this->stormIdToPlayerId(i); |
| 105 | if ( iplr != -1 && iplr != BW::BWDATA::g_LocalHumanID ) |
| 106 | { |
| 107 | this->droppedPlayers.push_back(this->players[iplr]); |
| 108 | SNetDropPlayer(i, 0x40000006); // The value used when dropping |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | //------------------------------------------------ MOUSE/KEY INPUT ----------------------------------------- |
| 114 | void GameImpl::pressKey(int key) |
| 115 | { |
no test coverage detected