From: terencehill Date: Mon, 14 Dec 2015 18:47:30 +0000 (+0100) Subject: LMS: remove unneeded usage of self in reset_map_players hook function X-Git-Tag: xonotic-v0.8.2~1284^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=269d0d127b7dee89066dd0888094f9f870111290;p=xonotic%2Fxonotic-data.pk3dir.git LMS: remove unneeded usage of self in reset_map_players hook function --- diff --git a/qcsrc/server/mutators/mutator/gamemode_lms.qc b/qcsrc/server/mutators/mutator/gamemode_lms.qc index 575bc6904..442f539fa 100644 --- a/qcsrc/server/mutators/mutator/gamemode_lms.qc +++ b/qcsrc/server/mutators/mutator/gamemode_lms.qc @@ -160,14 +160,13 @@ MUTATOR_HOOKFUNCTION(lms, reset_map_global) } MUTATOR_HOOKFUNCTION(lms, reset_map_players) -{SELFPARAM(); +{ entity e; if(restart_mapalreadyrestarted || (time < game_starttime)) - FOR_EACH_CLIENT(e) - if(IS_PLAYER(e)) - { - WITH(entity, self, e, PlayerScore_Add(e, SP_LMS_LIVES, LMS_NewPlayerLives())); - } + FOR_EACH_PLAYER(e) + { + PlayerScore_Add(e, SP_LMS_LIVES, LMS_NewPlayerLives()); + } return false; }