Make team_kills signed

Suicides can make kill counts negative.
This commit is contained in:
Kp 2015-10-03 22:15:17 +00:00
parent 4a0a2b7da5
commit 9da2a938d8
2 changed files with 4 additions and 4 deletions

View file

@ -569,7 +569,7 @@ extern int Player_joining_extras;
extern int Network_player_added;
extern array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kill_matrix;
extern array<uint16_t, 2> team_kills;
extern array<int16_t, 2> team_kills;
extern int multi_goto_secret;
@ -802,7 +802,7 @@ struct netgame_info : prohibit_void_ptr<netgame_info>, ignore_window_pointer_t
array<callsign_t, 2> team_name;
array<uint32_t, MAX_PLAYERS> locations;
array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kills;
array<uint16_t, 2> team_kills;
array<int16_t, 2> team_kills;
array<uint16_t, MAX_PLAYERS> killed;
array<uint16_t, MAX_PLAYERS> player_kills;
array<uint32_t, MAX_PLAYERS> player_score;

View file

@ -147,7 +147,7 @@ int Network_message_reciever=-1;
static array<unsigned, MAX_PLAYERS> sorted_kills;
int multi_goto_secret = 0;
array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kill_matrix;
array<uint16_t, 2> team_kills;
array<int16_t, 2> team_kills;
int multi_quit_game = 0;
const char GMNames[MULTI_GAME_TYPE_COUNT][MULTI_GAME_NAME_LENGTH]={
"Anarchy",
@ -516,7 +516,7 @@ multi_new_game(void)
PowerupCaps.clear();
team_kills[0] = team_kills[1] = 0;
team_kills = {};
imulti_new_game=1;
multi_quit_game = 0;
Show_kill_list = 1;