summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-10-15 21:16:06 +0300
committerMikko Tiusanen <ams@daug.net>2014-10-15 21:16:06 +0300
commit8268afc55026f70cd21a7941e1228cfd9adeb0a8 (patch)
tree2439ce84a6ae39f40cf0a460db87036597a2d969 /src/game/g_combat.c
parentcb6e022bb7aadf56d4f7ebc136f652fc18fbc44e (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.c3
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( );
}