]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
console: Readd code accidentally removed
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Dec 2020 19:31:37 +0000 (19:31 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 31 Dec 2020 19:31:37 +0000 (19:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13086 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index a10259e2b1c35be7bd2908696114fe9767b70577..75809f49eb1d8504606816b540b1080a18b628ba 100644 (file)
--- a/console.c
+++ b/console.c
@@ -2212,6 +2212,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);