From: Mario Date: Wed, 6 Feb 2013 23:31:20 +0000 (+1100) Subject: Revert previous commit (giving more lives on spawn fails) X-Git-Tag: xonotic-v0.7.0~60^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0f829d33eb7968d21ba2df0d137949e0ccff8a0;p=xonotic%2Fxonotic-data.pk3dir.git Revert previous commit (giving more lives on spawn fails) --- diff --git a/qcsrc/server/mutators/gamemode_lms.qc b/qcsrc/server/mutators/gamemode_lms.qc index 1e64c86bb..1e9db0e7d 100644 --- a/qcsrc/server/mutators/gamemode_lms.qc +++ b/qcsrc/server/mutators/gamemode_lms.qc @@ -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; }