Fixed a few unneeded breaks
This commit is contained in:
parent
58fa8b40bf
commit
b829c9b14e
@ -243,7 +243,7 @@ bool cMap::UpdatePixel(unsigned int a_X, unsigned int a_Z)
|
|||||||
{
|
{
|
||||||
for (unsigned int Z = m_RelZ; Z < m_RelZ + PixelWidth; ++Z)
|
for (unsigned int Z = m_RelZ; Z < m_RelZ + PixelWidth; ++Z)
|
||||||
{
|
{
|
||||||
unsigned int WaterDepth = 0;
|
// unsigned int WaterDepth = 0;
|
||||||
|
|
||||||
BLOCKTYPE TargetBlock = E_BLOCK_AIR;
|
BLOCKTYPE TargetBlock = E_BLOCK_AIR;
|
||||||
NIBBLETYPE TargetMeta = 0;
|
NIBBLETYPE TargetMeta = 0;
|
||||||
@ -261,12 +261,14 @@ bool cMap::UpdatePixel(unsigned int a_X, unsigned int a_Z)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO 2014-02-22 xdot: Check if block is liquid
|
// TODO 2014-02-22 xdot: Check if block is liquid
|
||||||
|
/*
|
||||||
else if (false)
|
else if (false)
|
||||||
{
|
{
|
||||||
--Height;
|
--Height;
|
||||||
++WaterDepth;
|
++WaterDepth;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,6 @@ AString & UTF8ToRawBEUTF16(const char * a_UTF8, size_t a_UTF8Length, AString & a
|
|||||||
if (!isLegalUTF8(source, extraBytesToRead + 1))
|
if (!isLegalUTF8(source, extraBytesToRead + 1))
|
||||||
{
|
{
|
||||||
return a_UTF16;
|
return a_UTF16;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The cases all fall through. See "Note A" below.
|
// The cases all fall through. See "Note A" below.
|
||||||
|
@ -72,7 +72,6 @@ void NonCtrlHandler(int a_Signal)
|
|||||||
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
||||||
LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault");
|
LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user