From 9634d86b306b3ad544682d646b509e0555a7b438 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 15 Jul 2020 04:25:05 +1000 Subject: [PATCH] Don't override title and description if none was provided by the map --- qcsrc/common/mapinfo.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index cc9c0f93c..4e91ba1d9 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -799,13 +799,15 @@ bool _MapInfo_ParseArena(int fh, string pFilename, Gametype pGametypeToSet, bool testing_map = false; if(dosave) { - MapInfo_Map_description = stored_Map_description; - MapInfo_Map_title = stored_Map_title; + if(stored_Map_description != "") + MapInfo_Map_description = stored_Map_description; + if(stored_Map_title != "") + MapInfo_Map_title = stored_Map_title; FOREACH(Gametypes, it.m_flags & stored_supportedGametypes, { _MapInfo_Map_ApplyGametype ("", pGametypeToSet, it, true); }); - break; // no need to continue through the file, we have our map! + return true; // no need to continue through the file, we have our map! } else { -- 2.39.2