Save settings when receiving an SDL_QUIT event.

Closes #1964.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11126 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2010-07-10 20:57:28 +00:00 committed by Git SVN Gateway
parent ef3c1b6d1d
commit 11fa3d73fc
1 changed files with 1 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ static void mainLoop(void)
handleActiveEvent(&event.active); handleActiveEvent(&event.active);
break; break;
case SDL_QUIT: case SDL_QUIT:
saveConfig();
return; return;
default: default:
break; break;