Fix disablespeedajdust in SOCs being set like an integer value instead of a boolean

This commit is contained in:
Monster Iestyn 2018-12-24 19:29:54 +00:00
parent 140152c2e7
commit 936b9ecebc

View file

@ -3044,7 +3044,7 @@ static void readmaincfg(MYFILE *f)
else if (fastcmp(word, "DISABLESPEEDADJUST"))
{
DEH_WriteUndoline(word, va("%d", disableSpeedAdjust), UNDO_NONE);
disableSpeedAdjust = (UINT8)get_number(word2);
disableSpeedAdjust = (value || word2[0] == 'T' || word2[0] == 'Y');
}
else if (fastcmp(word, "NUMDEMOS"))
{