Adds to the player's score & kill total
| 3863 | |
| 3864 | // Adds to the player's score & kill total |
| 3865 | void PlayerScoreAdd(int playernum, int points) { |
| 3866 | // Add score |
| 3867 | if (points) { |
| 3868 | |
| 3869 | if (points > 0) |
| 3870 | Players[playernum].num_kills_level++; |
| 3871 | else |
| 3872 | Players[playernum].friendly_kills_level++; |
| 3873 | |
| 3874 | if (!(playernum != Player_num || IsCheater)) { |
| 3875 | Players[playernum].score += points; |
| 3876 | |
| 3877 | Score_added = points; |
| 3878 | Score_added_timer = SCORE_ADDED_TIME; |
| 3879 | } |
| 3880 | } |
| 3881 | } |
| 3882 | |
| 3883 | //////////////////////////////////////////////////// |
| 3884 | // Thief interface functions |
no outgoing calls
no test coverage detected