]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert previous commit (giving more lives on spawn fails)
authorMario <mario.mario@y7mail.com>
Wed, 6 Feb 2013 23:31:20 +0000 (10:31 +1100)
committerMario <mario.mario@y7mail.com>
Wed, 6 Feb 2013 23:31:20 +0000 (10:31 +1100)
qcsrc/server/mutators/gamemode_lms.qc

index 1e64c86bbf5f5d556677f57db6837c33a3edb4e1..1e9db0e7dac7c11853a6dd1fee6e0bb086c35a25 100644 (file)
@@ -31,12 +31,6 @@ MUTATOR_HOOKFUNCTION(lms_RemovePlayer)
 
 MUTATOR_HOOKFUNCTION(lms_PlayerSpawn)
 {
-       if(PlayerScore_Add(self, SP_LMS_LIVES, LMS_NewPlayerLives()) <= 0)
-       {
-               PlayerScore_Add(self, SP_LMS_RANK, 666);
-               self.frags = FRAGS_SPECTATOR;
-       }
-       
        // player is dead and becomes observer
        // FIXME fix LMS scoring for new system
        if(PlayerScore_Add(self, SP_LMS_RANK, 0) > 0)
@@ -49,6 +43,12 @@ MUTATOR_HOOKFUNCTION(lms_ClientConnect)
 {
        self.classname = "player";
        campaign_bots_may_start = 1;
+       
+       if(PlayerScore_Add(self, SP_LMS_LIVES, LMS_NewPlayerLives()) <= 0)
+       {
+               PlayerScore_Add(self, SP_LMS_RANK, 666);
+               self.frags = FRAGS_SPECTATOR;
+       }
                        
        return FALSE;
 }