mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Logging cleanup (#69)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 * Output/Logging Overhaul * Added StandardOut class * Renamed LOGX macros to LOG_X * Removed LogMsg macros in favor of LOG_X * Added console window for debug Windows builds * Updated Xcode Project + StandardOut.hpp + StandardOut.cpp * StandardOut_windows * Replaced the Windows #ifdefs in StandardOut with StandardOut_windows --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -745,7 +745,7 @@ void LevelChunk::setData(int x, int y, int z, int data)
|
||||
// seems to set block data in 8192 block (4*16*128) chunks for some reason ?
|
||||
void LevelChunk::setBlocks(uint8_t* pData, int y)
|
||||
{
|
||||
puts("LevelChunk::setBlocks");
|
||||
LOG_I("LevelChunk::setBlocks");
|
||||
for (int i = 0; i < 8192; i++)
|
||||
{
|
||||
m_pBlockData[8192 * y + i] = pData[i];
|
||||
@@ -774,7 +774,7 @@ void LevelChunk::setBlocks(uint8_t* pData, int y)
|
||||
|
||||
int LevelChunk::setBlocksAndData(uint8_t* pData, int a3, int a4, int a5, int a6, int a7, int a8, int a9)
|
||||
{
|
||||
puts("LevelChunk::setBlocksAndData");
|
||||
LOG_I("LevelChunk::setBlocksAndData");
|
||||
|
||||
if (a3 >= a6)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ RandomLevelSource::RandomLevelSource(Level* level, TLong seed, int x) :
|
||||
field_7E90 = nullptr;
|
||||
field_7E94 = nullptr;
|
||||
|
||||
LogMsg("Generating world with seed: %d", seed);
|
||||
LOG_I("Generating world with seed: %d", seed);
|
||||
|
||||
for (int a = 0; a < 32; a++)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ RandomLevelSource::RandomLevelSource(Level* level, TLong seed, int x) :
|
||||
field_7280 = new float[1024];
|
||||
|
||||
Random random = m_random;
|
||||
printf("random.get : %d\n", random.genrand_int32() >> 1);
|
||||
LOG_I("random.get : %d", random.genrand_int32() >> 1);
|
||||
}
|
||||
|
||||
// @BUG: Potential collisions.
|
||||
|
||||
@@ -21,7 +21,7 @@ PerlinNoise::PerlinNoise(Random* pRandom, int nOctaves)
|
||||
|
||||
if (nOctaves == 10)
|
||||
{
|
||||
LogMsg("Ok");
|
||||
LOG_I("PerlinNoise octaves are 10");
|
||||
}
|
||||
|
||||
init(nOctaves);
|
||||
|
||||
Reference in New Issue
Block a user