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-861f7616d084
master
Buginator 2009-05-23 19:45:36 +00:00 committed by Git SVN Gateway
parent c5bad8db10
commit 7b445aa461
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}