From 4d042ea0622542c30bfed014018c5f8e7757a4ec Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sun, 27 Jun 2021 09:56:25 +0200 Subject: [PATCH] Client: Font_LoadFont() will now have some credible defaults as a fallback. --- src/client/font.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/font.qc b/src/client/font.qc index a9288361..516e901a 100644 --- a/src/client/font.qc +++ b/src/client/font.qc @@ -29,9 +29,10 @@ Font_LoadFont(string filename) return -1; } - string font; - string size; - string shortname; + string font = "gfx/conchars"; + string size = "8"; + string shortname ""; + while ((line = fgets(fs_font))) { int c = tokenize_console(line);