Skip to content

Commit b5a35b2

Browse files
committed
Revert "Merge pull request #926 from ReactiveDrop/bugfix/rd-challenge"
This reverts commit e60ea78, reversing changes made to 3b7795a.
1 parent 06fafb1 commit b5a35b2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/game/shared/swarm/asw_gamerules.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9932,10 +9932,7 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99329932
KeyValues::AutoDelete pKV( "CHALLENGE" );
99339933
bool bEnabled = ReactiveDropChallenges::ReadData( pKV, szChallengeName );
99349934

9935-
rd_challenge.SetValue("");
99369935
ResetChallengeConVars();
9937-
rd_challenge.SetValue(szChallengeName);
9938-
99399936
if ( ASWDeathmatchMode() )
99409937
{
99419938
ASWDeathmatchMode()->ApplyDeathmatchConVars();
@@ -9975,6 +9972,7 @@ void CAlienSwarm::EnableChallenge( const char *szChallengeName )
99759972
// if rd_max_marines changed we need to update marines limits using SetMaxMarines
99769973
SetMaxMarines();
99779974
EnforceMaxMarines();
9975+
rd_challenge.SetValue( szChallengeName );
99789976
OnSkillLevelChanged( m_iSkillLevel );
99799977

99809978
if ( V_strcmp( rd_challenge.GetString(), "0" ) )

0 commit comments

Comments
 (0)