From: Mario Date: Thu, 29 Sep 2022 08:25:56 +0000 (+1000) Subject: Skip commented out lines when scanning .arena files for map information X-Git-Tag: xonotic-v0.8.6~328^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=207ed34e51af9906d852a01aa2c2d8ce6167b5f2;p=xonotic%2Fxonotic-data.pk3dir.git Skip commented out lines when scanning .arena files for map information --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 2aada5085..508015d58 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -953,6 +953,8 @@ string _MapInfo_FindArenaFile(string pFilename, string extension) continue; // how? for(string s; (s = fgets(fh)); ) { + if(substring(s, 0, 2) == "//") + continue; int offset = strstrofs(s, "map", 0); if(offset >= 0) {