From 59c26b5ce0dd2c09f0acc85f09271ea8a02ba776 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 4 Aug 2003 05:21:18 +0000 Subject: [PATCH] quick fix to handle .ent files starting with comments --- libs/gamecode/engine/pr_parse.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/gamecode/engine/pr_parse.c b/libs/gamecode/engine/pr_parse.c index 8df95f4f1..00c8b4729 100644 --- a/libs/gamecode/engine/pr_parse.c +++ b/libs/gamecode/engine/pr_parse.c @@ -487,13 +487,12 @@ ED_ParseOld (progs_t *pr, const char *data) void ED_LoadFromFile (progs_t *pr, const char *data) { - if (*data == '{') { - // oldstyle entity data - ED_ParseOld (pr, data); - } else if (*data == '(') { + if (*data == '(') { // new style (plist) entity data - } else { plitem_t *plist = PL_GetPropertyList (data); plist = plist; + } else { + // oldstyle entity data + ED_ParseOld (pr, data); } }