File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2636,7 +2636,7 @@ procedure Tgoverlayform.SaveMangoHudConfig;
26362636 ConfigLines: TStringList;
26372637 ConfigDir, FontPath, FontDir, DistroFile: string;
26382638 SelectedValues: TStringList;
2639- i, MaxFPS: Integer;
2639+ i,TempFPS, MaxFPS: Integer;
26402640 TempFiles: TStringList;
26412641 TempFile: string;
26422642 FS: TFormatSettings;
@@ -2986,7 +2986,10 @@ procedure Tgoverlayform.SaveMangoHudConfig;
29862986 begin
29872987 if fpslimcheckgroup.Checked[i] then
29882988 begin
2989- SelectedValues.Add(IntToStr(StrToIntDef(fpslimcheckgroup.Items[i], 0 ) + offsetSpinedit.Value ));
2989+ TempFPS := StrToIntDef(fpslimcheckgroup.Items[i], 0 );
2990+ if TempFPS <> 0 then
2991+ TempFPS := TempFPS + offsetSpinedit.Value ;
2992+ SelectedValues.Add(IntToStr(TempFPS));
29902993 if StrToIntDef(fpslimcheckgroup.Items[i], 0 ) > MaxFPS then
29912994 MaxFPS := StrToIntDef(fpslimcheckgroup.Items[i], 0 );
29922995 end ;
@@ -3760,7 +3763,9 @@ procedure Tgoverlayform.FormCreate(Sender: TObject);
37603763
37613764 for i := 0 to FPSNumbers.Count - 1 do
37623765 begin
3763- FPS := StrToIntDef(FPSNumbers[i], 0 ) + Offset;
3766+ FPS := StrToIntDef(FPSNumbers[i], 0 );
3767+ if FPS <> 0 then
3768+ FPS := FPS + Offset;
37643769 FPSList.Add(IntToStr(FPS));
37653770 if FPS > MaxFPS then
37663771 MaxFPS := FPS;
You can’t perform that action at this time.
0 commit comments