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.
This commit is contained in:
Bill Currie 2012-01-05 14:00:57 +09:00
parent ffc9680653
commit 03bcfb9483

View file

@ -539,6 +539,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)