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

Ensure that the zoom settings is a supported value

This commit is contained in:
Mathieu Schroeter 2017-09-20 06:45:07 +02:00
parent 2496e53985
commit 6d4200e89c

View File

@ -157,7 +157,7 @@ ReadConfig ()
if (!(g_settingsOverload & SETTING_ZOOM) && j.find ("zoom") != j.end ())
{
g_windowScale = j["zoom"].get<Uint8> ();
if (g_windowScale != 0)
if (g_windowScale != 1 && g_windowScale != 2)
g_windowScale = 1;
}