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 6f18035c12
commit 764cd91879

View file

@ -540,6 +540,8 @@ qfs_build_gamedir (const char **list)
; ;
gamedir->dir.def = nva ("%.*s", (int) (dir - gamedir->path), gamedir->dir.def = nva ("%.*s", (int) (dir - gamedir->path),
gamedir->path); gamedir->path);
if (!gamedir->hudtype)
gamedir->hudtype = strdup ("id");
if (!gamedir->dir.skins) if (!gamedir->dir.skins)
gamedir->dir.skins = nva ("%s/skins", gamedir->dir.def); gamedir->dir.skins = nva ("%s/skins", gamedir->dir.def);
if (!gamedir->dir.models) if (!gamedir->dir.models)