diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-10-15 21:16:06 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-10-15 21:16:06 +0300 |
commit | 8268afc55026f70cd21a7941e1228cfd9adeb0a8 (patch) | |
tree | 2439ce84a6ae39f40cf0a460db87036597a2d969 /src/game/g_combat.c | |
parent | cb6e022bb7aadf56d4f7ebc136f652fc18fbc44e (diff) |
Added automatic levels functionality based on total score earned of each player.
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index ada2f9c..87a6bd6 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -55,6 +55,9 @@ void AddScore( gentity_t *ent, int score ) score = rint( ((float)score) / 50.0f ); ent->client->ps.persistant[ PERS_SCORE ] += score; + + G_admin_add_score( ent, score ); + CalculateRanks( ); } |