Skip to content
Permalink
Browse files

- add some /0 guards in the load/save menu to prevent VM aborts

  • Loading branch information...
madame-rachelle committed Mar 12, 2019
1 parent 2d5210c commit fd4295b38cc0d85d94ae65f329041d843249bb7e
Showing with 2 additions and 2 deletions.
  1. +2 −2 wadsrc/static/zscript/ui/menu/loadsavemenu.zs
@@ -126,8 +126,8 @@ class LoadSaveMenu : ListMenu
savepicWidth = 216*screen.GetWidth() / 640;
savepicHeight = 135*screen.GetHeight() / 400;

FontScale = screen.GetHeight() / 480;
rowHeight = (NewConsoleFont.GetHeight() + 1) * FontScale;
FontScale = max(screen.GetHeight() / 480, 1);
rowHeight = max((NewConsoleFont.GetHeight() + 1) * FontScale, 1);

listboxLeft = savepicLeft + savepicWidth + 14;
listboxTop = savepicTop;

0 comments on commit fd4295b

Please sign in to comment.
You can’t perform that action at this time.