Make team_kills signed
Suicides can make kill counts negative.
This commit is contained in:
parent
4a0a2b7da5
commit
9da2a938d8
|
@ -569,7 +569,7 @@ extern int Player_joining_extras;
|
||||||
extern int Network_player_added;
|
extern int Network_player_added;
|
||||||
|
|
||||||
extern array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kill_matrix;
|
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;
|
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<callsign_t, 2> team_name;
|
||||||
array<uint32_t, MAX_PLAYERS> locations;
|
array<uint32_t, MAX_PLAYERS> locations;
|
||||||
array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kills;
|
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> killed;
|
||||||
array<uint16_t, MAX_PLAYERS> player_kills;
|
array<uint16_t, MAX_PLAYERS> player_kills;
|
||||||
array<uint32_t, MAX_PLAYERS> player_score;
|
array<uint32_t, MAX_PLAYERS> player_score;
|
||||||
|
|
|
@ -147,7 +147,7 @@ int Network_message_reciever=-1;
|
||||||
static array<unsigned, MAX_PLAYERS> sorted_kills;
|
static array<unsigned, MAX_PLAYERS> sorted_kills;
|
||||||
int multi_goto_secret = 0;
|
int multi_goto_secret = 0;
|
||||||
array<array<uint16_t, MAX_PLAYERS>, MAX_PLAYERS> kill_matrix;
|
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;
|
int multi_quit_game = 0;
|
||||||
const char GMNames[MULTI_GAME_TYPE_COUNT][MULTI_GAME_NAME_LENGTH]={
|
const char GMNames[MULTI_GAME_TYPE_COUNT][MULTI_GAME_NAME_LENGTH]={
|
||||||
"Anarchy",
|
"Anarchy",
|
||||||
|
@ -516,7 +516,7 @@ multi_new_game(void)
|
||||||
|
|
||||||
PowerupCaps.clear();
|
PowerupCaps.clear();
|
||||||
|
|
||||||
team_kills[0] = team_kills[1] = 0;
|
team_kills = {};
|
||||||
imulti_new_game=1;
|
imulti_new_game=1;
|
||||||
multi_quit_game = 0;
|
multi_quit_game = 0;
|
||||||
Show_kill_list = 1;
|
Show_kill_list = 1;
|
||||||
|
|
Loading…
Reference in a new issue