[PATCH] qbsp: Fix warning about invalid wads

Add back the warning message about invalid wads. Don't bother to differentiate
between filesystem errors and bad magic, etc. The file is already open, so if
we can't read it's either too small or there might be some hardware problem
(not worth dealing with separately).

Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2006-10-02 12:58:44 +09:30
parent a2e9503fdc
commit 60d1e22160
1 changed files with 4 additions and 3 deletions

View File

@ -85,10 +85,11 @@ WADList_Init(wadlist_t *list, char *wadstring)
wadstring[i++] = 0;
w->file = fopen(fname, "rb");
if (w->file) {
if (WAD_LoadInfo(w))
w++;
else
if (!WAD_LoadInfo(w)) {
Message(msgWarning, warnNotWad, fname);
fclose(w->file);
} else
w++;
}
}