]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
Add a proper README with build instructions and links to the available chats. To...
[xonotic/darkplaces.git] / console.c
index a10259e2b1c35be7bd2908696114fe9767b70577..e7e810e63eb6169b9f85cbcc5974deb8fc8609a7 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 1996-1997 Id Software, Inc.
+Copyright (C) 2000-2020 DarkPlaces contributors
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -2212,6 +2213,8 @@ qbool GetMapList (const char *s, char *completedname, int completednamebufferlen
                                lumplen = LittleLong(header->lumps[HL2LUMP_ENTITIES].filelen);
                                dpsnprintf(desc, sizeof(desc), "VBSP%i", LittleLong(((int *)buf)[1]));
                        }
+                       else
+                               dpsnprintf(desc, sizeof(desc), "unknown%i", BuffLittleLong(buf));
                        strlcpy(entfilename, t->filenames[i], sizeof(entfilename));
                        memcpy(entfilename + strlen(entfilename) - 4, ".ent", 5);
                        entities = (char *)FS_LoadFile(entfilename, tempmempool, true, NULL);