X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fvote.qc;h=fdb53ace94e1f5b3b11d5aaeb0c621ab03ae776d;hp=582aaf9f929a0fbc638661d1b31d904734d397c5;hb=498bd21f83049cfcca6e5336cb23c4fdef15ff92;hpb=225e74332de2e71b4d084b75e422686a8ffaf6ee diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 582aaf9f9..fdb53ace9 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -326,9 +326,7 @@ void reset_map(float dorespawn) if(time <= game_starttime && round_handler_IsActive()) round_handler_Reset(game_starttime); - if(g_race || g_cts) - race_ReadyRestart(); - else MUTATOR_CALLHOOK(reset_map_global); + MUTATOR_CALLHOOK(reset_map_global); for(self = world; (self = nextent(self)); ) if(IS_NOT_A_CLIENT(self)) @@ -423,7 +421,7 @@ void ReadyRestart_force() { tmp_player.alivetime = 0; tmp_player.killcount = 0; - PS_GR_P_ADDVAL(tmp_player, PLAYERSTATS_ALIVETIME, -PS_GR_P_ADDVAL(tmp_player, PLAYERSTATS_ALIVETIME, 0)); + PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, -PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, 0)); } restart_mapalreadyrestarted = 0; // reset this var, needed when cvar sv_ready_restart_repeatable is in use