]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LMS: remove unneeded usage of self in reset_map_players hook function
authorterencehill <piuntn@gmail.com>
Mon, 14 Dec 2015 18:47:30 +0000 (19:47 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 16 Dec 2015 17:06:35 +0000 (18:06 +0100)
qcsrc/server/mutators/mutator/gamemode_lms.qc

index 575bc69040474805daee2fef54347a3887dd6f3e..442f539fa70d0a01819d99cb6e484d357c271a47 100644 (file)
@@ -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;
 }