From 15ebc840177d79572067de15629046efb346ee52 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 26 Dec 2019 07:13:59 -0500 Subject: [PATCH] - fix a /0 crash in intermission text --- src/intermission/intermission.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intermission/intermission.cpp b/src/intermission/intermission.cpp index 5a0e96258..00a729151 100644 --- a/src/intermission/intermission.cpp +++ b/src/intermission/intermission.cpp @@ -380,7 +380,7 @@ void DIntermissionScreenText::Drawer () // line feed characters. int numrows; auto font = generic_ui ? NewSmallFont : SmallFont; - auto fontscale = generic_ui ? MIN(screen->GetWidth()/640, screen->GetHeight()/400) : MIN(screen->GetWidth()/400, screen->GetHeight() / 250); + auto fontscale = MAX(generic_ui ? MIN(screen->GetWidth() / 640, screen->GetHeight() / 400) : MIN(screen->GetWidth() / 400, screen->GetHeight() / 250), 1); int cleanwidth = screen->GetWidth() / fontscale; int cleanheight = screen->GetHeight() / fontscale; int refwidth = generic_ui ? 640 : 320;