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:
parent
2496e53985
commit
6d4200e89c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user