cleanup
This commit is contained in:
@@ -1827,7 +1827,7 @@ bool GameState::ChangePreferredDifficulty( PlayerNumber pn, int dir )
|
|||||||
Difficulty d = GetClosestShownDifficulty(pn);
|
Difficulty d = GetClosestShownDifficulty(pn);
|
||||||
while( 1 )
|
while( 1 )
|
||||||
{
|
{
|
||||||
d = (Difficulty)(d+dir);
|
d = enum_add2( d, dir );
|
||||||
if( d < 0 || d >= NUM_Difficulty )
|
if( d < 0 || d >= NUM_Difficulty )
|
||||||
return false;
|
return false;
|
||||||
if( find(v.begin(), v.end(), d) != v.end() )
|
if( find(v.begin(), v.end(), d) != v.end() )
|
||||||
|
|||||||
Reference in New Issue
Block a user