From 93f5a4388c62bfe6e470a30e6598495f130db871 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 11 Aug 2013 15:21:31 +0100 Subject: Removed unneeded case clause --- source/Blocks/BlockTorch.h | 27 ++++++++++++--------------- source/Generating/ComposableGenerator.cpp | 2 +- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/source/Blocks/BlockTorch.h b/source/Blocks/BlockTorch.h index ebff7b641..f774e15a0 100644 --- a/source/Blocks/BlockTorch.h +++ b/source/Blocks/BlockTorch.h @@ -109,21 +109,18 @@ public: static bool CanBePlacedOn(BLOCKTYPE a_BlockType, char a_Direction) { - switch (a_BlockType) - { - //case E_BLOCK_GLASS: - //case E_BLOCK_FENCE: - //case E_BLOCK_NETHER_BRICK_FENCE: - //case E_BLOCK_PISTON: - //case E_BLOCK_IRON_BARS - if ( g_BlockIsSolid[a_BlockType] ) { - return (a_Direction == 0x1); // allow only direction "standing on floor" - } - else { - //default: - //{ - return g_BlockIsSolid[a_BlockType]; - } + //case E_BLOCK_GLASS: + //case E_BLOCK_FENCE: + //case E_BLOCK_NETHER_BRICK_FENCE: + //case E_BLOCK_PISTON: + //case E_BLOCK_IRON_BARS + if ( g_BlockIsSolid[a_BlockType] ) { + return (a_Direction == 0x1); // allow only direction "standing on floor" + } + else { + //default: + //{ + return g_BlockIsSolid[a_BlockType]; } } diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp index fb31ec7b2..8763e2809 100644 --- a/source/Generating/ComposableGenerator.cpp +++ b/source/Generating/ComposableGenerator.cpp @@ -207,7 +207,7 @@ void cComposableGenerator::InitBiomeGen(cIniFile & a_IniFile) ); CacheSize = 4; } - LOGINFO("Using a cache for biomegen of size %d.", CacheSize); + LOGD("Using a cache for biomegen of size %d.", CacheSize); m_UnderlyingBiomeGen = m_BiomeGen; m_BiomeGen = new cBioGenCache(m_UnderlyingBiomeGen, CacheSize); } -- cgit v1.2.3