1
0

Removed unneeded case clause

This commit is contained in:
Tiger Wang 2013-08-11 15:21:31 +01:00
parent e7ecd78312
commit 93f5a4388c
2 changed files with 13 additions and 16 deletions

View File

@ -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];
}
}

View File

@ -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);
}