1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Check that the zoom (-z) is in the range

This commit is contained in:
Mathieu Schroeter 2017-12-13 23:01:48 +01:00
parent 2ac9f735af
commit f97d1c3644

View File

@ -641,6 +641,8 @@ parseArgs (int argc, char * argv[], bool & exit)
if (args["zoom"])
{
g_windowScale = args["zoom"];
if (g_windowScale != 1 && g_windowScale != 2)
g_windowScale = 1;
g_settingsOverload |= SETTING_ZOOM;
}