]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'Lyberta/GivePlayerAmmo' into 'master'
authorMario <zacjardine@y7mail.com>
Sun, 27 Aug 2017 13:18:13 +0000 (13:18 +0000)
committerMario <zacjardine@y7mail.com>
Sun, 27 Aug 2017 13:18:13 +0000 (13:18 +0000)
Added GivePlayerStuff functions.

See merge request !433

qcsrc/server/client.qc

index 157a35379971433d4c79f0b676942a0dd44dad94..f1d417d6bace6987d6f1a72984f6f77260b7db0f 100644 (file)
@@ -1187,7 +1187,10 @@ void ClientConnect(entity this)
        PlayerStats_GameReport_AddEvent(sprintf("kills-%d", this.playerid));
 
        // always track bots, don't ask for cl_allow_uidtracking
-    if (IS_BOT_CLIENT(this)) PlayerStats_GameReport_AddPlayer(this);
+       if (IS_BOT_CLIENT(this))
+               PlayerStats_GameReport_AddPlayer(this);
+       else
+               CS(this).allowed_timeouts = autocvar_sv_timeout_number;
 
        if (autocvar_sv_eventlog)
                GameLogEcho(strcat(":join:", ftos(this.playerid), ":", ftos(etof(this)), ":", ((IS_REAL_CLIENT(this)) ? this.netaddress : "bot"), ":", playername(this, false)));
@@ -1236,7 +1239,6 @@ void ClientConnect(entity this)
        }
 
        CS(this).jointime = time;
-       CS(this).allowed_timeouts = autocvar_sv_timeout_number;
 
        if (IS_REAL_CLIENT(this))
        {