X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fvote.qc;h=5f96334ddfd3141ff0208fbd6bb343f5f2e6724d;hp=fda3adc409d5515ea355d3059b1228a51d68b156;hb=29ba411594428929a9e9a0e0baa620210213bec7;hpb=c7595546506cb5d2af62a2c2db7b8681e01e4d01 diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index fda3adc40..5f96334dd 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -382,7 +382,7 @@ void reset_map(bool dorespawn) */ // NEW: changed behaviour so that it prevents that previous spectators/observers suddenly spawn as players // PlayerScore_Clear(it); - it.killcount = 0; + CS(it).killcount = 0; // stop the player from moving so that he stands still once he gets respawned it.velocity = '0 0 0'; it.avelocity = '0 0 0'; @@ -424,7 +424,7 @@ void ReadyRestart_force() // clear player attributes FOREACH_CLIENT(IS_PLAYER(it), LAMBDA( it.alivetime = 0; - it.killcount = 0; + CS(it).killcount = 0; PS_GR_P_ADDVAL(it, PLAYERSTATS_ALIVETIME, -PS_GR_P_ADDVAL(it, PLAYERSTATS_ALIVETIME, 0)); ));