[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:
parent
a2e9503fdc
commit
60d1e22160
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue