Catch and ignore sky and fog fields.

This way, we won't get spammed with "not a field" messages on map load.
This commit is contained in:
Bill Currie 2010-12-10 12:58:32 +09:00
parent c4f71c0cda
commit 4af6c8c108

View file

@ -164,6 +164,11 @@ print_f (void)
static int
parse_field (progs_t *pr, const char *key, const char *value)
{
if (strequal (key, "sky")
|| strequal (key, "skyname")
|| strequal (key, "qlsky")
|| strequal (key, "fog"))
return 1;
if (*key == '_') // ignore _fields
return 1;
return 0;