Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7515 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c5bad8db10
commit
7b445aa461
|
@ -79,7 +79,9 @@ void setDifficultyLevel(DIFFICULTY_LEVEL lev)
|
|||
break;
|
||||
default:
|
||||
debug( LOG_ERROR, "Invalid difficulty level selected - forcing NORMAL" );
|
||||
abort();
|
||||
fDifPlayerModifier = 100.f / 100.f;
|
||||
fDifEnemyModifier = 100.f / 100.f;
|
||||
lev = DL_NORMAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue