From 7911782a3b1ecac21b8e03129b3e74e4e63e8f54 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 14 Jun 2022 19:37:36 -0400 Subject: [PATCH] only use alias data if it's classname or if it's not overridden --- qbsp/map.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qbsp/map.cc b/qbsp/map.cc index e9bdb541..0e4bcb0c 100644 --- a/qbsp/map.cc +++ b/qbsp/map.cc @@ -1660,7 +1660,9 @@ bool ParseEntity(parser_t &parser, mapentity_t *entity) if (alias_it != options.loaded_entity_defs.end()) { for (auto &pair : alias_it->second) { - entity->epairs.set(pair.first, pair.second); + if (pair.first == "classname" || !entity->epairs.has(pair.first)) { + entity->epairs.set(pair.first, pair.second); + } } }