One last (hopefully) fix to "maplist" command.

It now lists pak names correctly as it searches them.
This commit is contained in:
Dan Olson 2000-03-31 20:14:14 +00:00
parent 9a9b1a01be
commit c097e1a282

View file

@ -208,7 +208,7 @@ void COM_Maplist_f (void)
if (search->pack) { if (search->pack) {
int i; int i;
pack_t *pak = search->pack; pack_t *pak = search->pack;
Con_Printf ("Looking in %s...\n",search->filename); Con_Printf ("Looking in %s...\n",search->pack->filename);
for (i=0 ; i<pak->numfiles ; i++) { for (i=0 ; i<pak->numfiles ; i++) {
char *name=pak->files[i].name; char *name=pak->files[i].name;
if (!fnmatch ("maps/*.bsp", name, FNM_PATHNAME) if (!fnmatch ("maps/*.bsp", name, FNM_PATHNAME)