| 1049 | CallMultiScoreDLL(CDT_EVT_PLAYER_JOINS, Players[playernum].callsign); |
| 1050 | } |
| 1051 | void ScoreAPIGameOver() { |
| 1052 | player_score_matrix sm; |
| 1053 | |
| 1054 | if (ScoreAPIShouldBail()) |
| 1055 | return; |
| 1056 | |
| 1057 | int counted = 0; |
| 1058 | for (int i = 0; i < MAX_NET_PLAYERS; i++) { |
| 1059 | if (Players[i].callsign[0]) { |
| 1060 | strcpy(sm.name[counted], Players[i].callsign); |
| 1061 | sm.kills[counted] = Players[i].num_kills_level; |
| 1062 | sm.deaths[counted] = Players[i].num_deaths_level; |
| 1063 | counted++; |
| 1064 | } |
| 1065 | } |
| 1066 | sm.num_players = counted; |
| 1067 | // Create a matrix of all the players with their scores and send a pointer to it. |
| 1068 | CallMultiScoreDLL(CDT_EVT_GAME_OVER, &sm); |
| 1069 | } |
| 1070 | bool Set_score_server_ip = false; |
| 1071 | void ScoreAPIFrameInterval() { |
| 1072 | if (ScoreAPIShouldBail()) |
no test coverage detected