mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Replace PP with direct printing
This commit is contained in:
parent
de77fe8ade
commit
3b74cc4a41
18 changed files with 110 additions and 109 deletions
|
@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "config.h"
|
||||
#include "constants.h"
|
||||
#include "environment.h"
|
||||
#include "irrlicht_changes/printing.h"
|
||||
#include "log.h"
|
||||
#include "map.h"
|
||||
#include "mapblock.h"
|
||||
|
@ -631,7 +632,7 @@ MapBlock *EmergeThread::finishGen(v3s16 pos, BlockMakeData *bmdata,
|
|||
MapBlock *block = m_map->getBlockNoCreateNoEx(pos);
|
||||
if (!block) {
|
||||
errorstream << "EmergeThread::finishGen: Couldn't grab block we "
|
||||
"just generated: " << PP(pos) << std::endl;
|
||||
"just generated: " << pos << std::endl;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -701,7 +702,7 @@ void *EmergeThread::run()
|
|||
continue;
|
||||
|
||||
bool allow_gen = bedata.flags & BLOCK_EMERGE_ALLOW_GEN;
|
||||
EMERGE_DBG_OUT("pos=" PP(pos) " allow_gen=" << allow_gen);
|
||||
EMERGE_DBG_OUT("pos=" << pos << " allow_gen=" << allow_gen);
|
||||
|
||||
action = getBlockOrStartGen(pos, allow_gen, &block, &bmdata);
|
||||
if (action == EMERGE_GENERATED) {
|
||||
|
@ -733,7 +734,7 @@ void *EmergeThread::run()
|
|||
}
|
||||
} catch (VersionMismatchException &e) {
|
||||
std::ostringstream err;
|
||||
err << "World data version mismatch in MapBlock " << PP(pos) << std::endl
|
||||
err << "World data version mismatch in MapBlock " << pos << std::endl
|
||||
<< "----" << std::endl
|
||||
<< "\"" << e.what() << "\"" << std::endl
|
||||
<< "See debug.txt." << std::endl
|
||||
|
@ -742,7 +743,7 @@ void *EmergeThread::run()
|
|||
m_server->setAsyncFatalError(err.str());
|
||||
} catch (SerializationError &e) {
|
||||
std::ostringstream err;
|
||||
err << "Invalid data in MapBlock " << PP(pos) << std::endl
|
||||
err << "Invalid data in MapBlock " << pos << std::endl
|
||||
<< "----" << std::endl
|
||||
<< "\"" << e.what() << "\"" << std::endl
|
||||
<< "See debug.txt." << std::endl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue