From 68cced73afe546328cf94ed07c57deee47bfadec Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 20 Sep 2020 14:50:52 +0100 Subject: BlockHandler initialisation is a constant expression (#4891) * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness --- src/BlockInfo.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/BlockInfo.cpp') diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp index f7f2b392c..5078997a8 100644 --- a/src/BlockInfo.cpp +++ b/src/BlockInfo.cpp @@ -2,7 +2,6 @@ #include "BlockInfo.h" #include "BlockType.h" -#include "Blocks/BlockHandler.h" @@ -422,15 +421,6 @@ cBlockInfo::cBlockInfo(): -cBlockHandler * cBlockInfo::GetHandler(BLOCKTYPE a_Type) -{ - return &cBlockHandler::GetBlockHandler(a_Type); -} - - - - - float cBlockInfo::GetExplosionAbsorption(const BLOCKTYPE Block) { switch (Block) -- cgit v1.2.3