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,11 +9932,9 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99329932 KeyValues::AutoDelete pKV ( " CHALLENGE" );
99339933 bool bEnabled = ReactiveDropChallenges::ReadData ( pKV, szChallengeName );
99349934
9935- if ( bChanged ) {
9936- rd_challenge.SetValue (" 0" );
9937- ResetChallengeConVars ();
9938- rd_challenge.SetValue (szChallengeName);
9939- }
9935+ rd_challenge.SetValue (" " );
9936+ ResetChallengeConVars ();
9937+ rd_challenge.SetValue (szChallengeName);
99409938
99419939 if ( ASWDeathmatchMode () )
99429940 {
@@ -9958,6 +9956,7 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99589956 if ( bEnabled )
99599957 {
99609958 ApplyChallengeConVars ( pKV );
9959+ EnforceWeaponSelectionRules ();
99619960 }
99629961
99639962 if ( !bEnabled )
@@ -9976,7 +9975,6 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99769975 // if rd_max_marines changed we need to update marines limits using SetMaxMarines
99779976 SetMaxMarines ();
99789977 EnforceMaxMarines ();
9979- EnforceWeaponSelectionRules ();
99809978 OnSkillLevelChanged ( m_iSkillLevel );
99819979
99829980 if ( V_strcmp ( rd_challenge.GetString (), " 0" ) )
You can’t perform that action at this time.
0 commit comments