mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +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
|
@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "settings.h"
|
||||
#include "tool.h"
|
||||
#include "version.h"
|
||||
#include "irrlicht_changes/printing.h"
|
||||
#include "network/connection.h"
|
||||
#include "network/networkprotocol.h"
|
||||
#include "network/serveropcodes.h"
|
||||
|
@ -813,7 +814,7 @@ void Server::handleCommand_Damage(NetworkPacket* pkt)
|
|||
}
|
||||
|
||||
actionstream << player->getName() << " damaged by "
|
||||
<< (int)damage << " hp at " << PP(playersao->getBasePosition() / BS)
|
||||
<< (int)damage << " hp at " << (playersao->getBasePosition() / BS)
|
||||
<< std::endl;
|
||||
|
||||
PlayerHPChangeReason reason(PlayerHPChangeReason::FALL);
|
||||
|
@ -883,7 +884,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
|
|||
RespawnPlayer(peer_id);
|
||||
|
||||
actionstream << player->getName() << " respawns at "
|
||||
<< PP(playersao->getBasePosition() / BS) << std::endl;
|
||||
<< (playersao->getBasePosition() / BS) << std::endl;
|
||||
|
||||
// ActiveObject is added to environment in AsyncRunStep after
|
||||
// the previous addition has been successfully removed
|
||||
|
@ -1149,8 +1150,8 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
|
|||
if (nocheat_p != p_under) {
|
||||
infostream << "Server: " << player->getName()
|
||||
<< " started digging "
|
||||
<< PP(nocheat_p) << " and completed digging "
|
||||
<< PP(p_under) << "; not digging." << std::endl;
|
||||
<< nocheat_p << " and completed digging "
|
||||
<< p_under << "; not digging." << std::endl;
|
||||
is_valid_dig = false;
|
||||
// Call callbacks
|
||||
m_script->on_cheat(playersao, "finished_unknown_dig");
|
||||
|
@ -1173,7 +1174,7 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
|
|||
// If can't dig, ignore dig
|
||||
if (!params.diggable) {
|
||||
infostream << "Server: " << player->getName()
|
||||
<< " completed digging " << PP(p_under)
|
||||
<< " completed digging " << p_under
|
||||
<< ", which is not diggable with tool; not digging."
|
||||
<< std::endl;
|
||||
is_valid_dig = false;
|
||||
|
@ -1199,7 +1200,7 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
|
|||
// Dig not possible
|
||||
else {
|
||||
infostream << "Server: " << player->getName()
|
||||
<< " completed digging " << PP(p_under)
|
||||
<< " completed digging " << p_under
|
||||
<< "too fast; not digging." << std::endl;
|
||||
is_valid_dig = false;
|
||||
// Call callbacks
|
||||
|
@ -1394,7 +1395,7 @@ void Server::handleCommand_NodeMetaFields(NetworkPacket* pkt)
|
|||
|
||||
if (!pkt_read_formspec_fields(pkt, fields)) {
|
||||
warningstream << "Too large formspec fields! Ignoring for pos="
|
||||
<< PP(p) << ", player=" << player->getName() << std::endl;
|
||||
<< p << ", player=" << player->getName() << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue