| 230 | } |
| 231 | |
| 232 | void multi_player_left_msg(int pnum, int left) |
| 233 | { |
| 234 | char *pszFmt; |
| 235 | |
| 236 | if (plr[pnum].plractive) { |
| 237 | RemovePlrFromMap(pnum); |
| 238 | RemovePortalMissile(pnum); |
| 239 | DeactivatePortal(pnum); |
| 240 | RemovePlrPortal(pnum); |
| 241 | RemovePlrMissiles(pnum); |
| 242 | if (left) { |
| 243 | pszFmt = "Player '%s' just left the game"; |
| 244 | switch (sgdwPlayerLeftReasonTbl[pnum]) { |
| 245 | case 0x40000004: |
| 246 | pszFmt = "Player '%s' killed Diablo and left the game!"; |
| 247 | gbSomebodyWonGameKludge = TRUE; |
| 248 | break; |
| 249 | case 0x40000006: |
| 250 | pszFmt = "Player '%s' dropped due to timeout"; |
| 251 | break; |
| 252 | } |
| 253 | EventPlrMsg(pszFmt, plr[pnum]._pName); |
| 254 | } |
| 255 | plr[pnum].plractive = FALSE; |
| 256 | plr[pnum]._pName[0] = '\0'; |
| 257 | gbActivePlayers--; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void multi_net_ping() |
| 262 | { |
no test coverage detected