Skip to content

Commit

Permalink
- add some /0 guards in the load/save menu to prevent VM aborts
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Mar 12, 2019
1 parent 2d5210c commit fd4295b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wadsrc/static/zscript/ui/menu/loadsavemenu.zs
Expand Up @@ -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;
Expand Down

0 comments on commit fd4295b

Please sign in to comment.