File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9932,9 +9932,11 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99329932 KeyValues::AutoDelete pKV ( " CHALLENGE" );
99339933 bool bEnabled = ReactiveDropChallenges::ReadData ( pKV, szChallengeName );
99349934
9935- rd_challenge.SetValue (" " );
9936- ResetChallengeConVars ();
9937- rd_challenge.SetValue (szChallengeName);
9935+ if ( bChanged ) {
9936+ rd_challenge.SetValue (" 0" );
9937+ ResetChallengeConVars ();
9938+ rd_challenge.SetValue (szChallengeName);
9939+ }
99389940
99399941 if ( ASWDeathmatchMode () )
99409942 {
@@ -9956,7 +9958,6 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99569958 if ( bEnabled )
99579959 {
99589960 ApplyChallengeConVars ( pKV );
9959- EnforceWeaponSelectionRules ();
99609961 }
99619962
99629963 if ( !bEnabled )
@@ -9975,6 +9976,7 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99759976 // if rd_max_marines changed we need to update marines limits using SetMaxMarines
99769977 SetMaxMarines ();
99779978 EnforceMaxMarines ();
9979+ EnforceWeaponSelectionRules ();
99789980 OnSkillLevelChanged ( m_iSkillLevel );
99799981
99809982 if ( V_strcmp ( rd_challenge.GetString (), " 0" ) )
You can’t perform that action at this time.
0 commit comments