Skip to content

Commit

Permalink
#5977: Declaration precedence is matching the engine's behaviour now,…
Browse files Browse the repository at this point in the history
… the first decl takes precedence
  • Loading branch information
codereader committed Jun 26, 2022
1 parent 9cd5976 commit 86fc80f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion radiantcore/decl/DeclarationManager.cpp
Expand Up @@ -157,7 +157,8 @@ void DeclarationManager::reloadDecarations()
{
if (decl->getParseStamp() < _parseStamp)
{
rMessage() << "Declaration no longer present after reloadDecls: " << name << std::endl;
rMessage() << "[DeclManager] " << getTypeName(decl->getDeclType()) << " " <<
name << " no longer present after reloadDecls" << std::endl;

auto syntax = decl->getBlockSyntax();

Expand Down Expand Up @@ -304,6 +305,9 @@ void DeclarationManager::createOrUpdateDeclaration(Type type, const DeclarationB
{
rWarning() << "[DeclParser]: " << getTypeName(type) << " " <<
existing->second->getDeclName() << " has already been declared" << std::endl;

// Any declaration following after the first is ignored
return;
}

// Assign the block to the declaration instance
Expand Down

0 comments on commit 86fc80f

Please sign in to comment.