From 764cd918790998e39fcee5a9c4e7cd26609f693e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Jan 2012 14:00:57 +0900 Subject: [PATCH] Set the default hudtype. Yay, Deek for finding another bug in qf :). He had an old dirconf that didn't specify HudType and thus caused the status bar code to blow up. Set the default to "id" if none is found. --- libs/util/quakefs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/util/quakefs.c b/libs/util/quakefs.c index 7cc811433..a55c8a40e 100644 --- a/libs/util/quakefs.c +++ b/libs/util/quakefs.c @@ -540,6 +540,8 @@ qfs_build_gamedir (const char **list) ; gamedir->dir.def = nva ("%.*s", (int) (dir - gamedir->path), gamedir->path); + if (!gamedir->hudtype) + gamedir->hudtype = strdup ("id"); if (!gamedir->dir.skins) gamedir->dir.skins = nva ("%s/skins", gamedir->dir.def); if (!gamedir->dir.models)