projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New settings tab contain all possible settings
[oweals/minetest.git]
/
src
/
client.cpp
diff --git
a/src/client.cpp
b/src/client.cpp
index b2e21743c4949fde69fca67b13758f697bc5c321..5c04632d1ecbe09d8d2c35d7bc3163db63044ec2 100644
(file)
--- a/
src/client.cpp
+++ b/
src/client.cpp
@@
-98,7
+98,7
@@
MeshUpdateQueue::~MeshUpdateQueue()
*/
void MeshUpdateQueue::addBlock(v3s16 p, MeshMakeData *data, bool ack_block_to_server, bool urgent)
{
*/
void MeshUpdateQueue::addBlock(v3s16 p, MeshMakeData *data, bool ack_block_to_server, bool urgent)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
assert(data); // pre-condition
assert(data); // pre-condition
@@
-323,7
+323,7
@@
void Client::connect(Address address,
const std::string &address_name,
bool is_local_server)
{
const std::string &address_name,
bool is_local_server)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
initLocalMapSaving(address, address_name, is_local_server);
initLocalMapSaving(address, address_name, is_local_server);
@@
-333,7
+333,7
@@
void Client::connect(Address address,
void Client::step(float dtime)
{
void Client::step(float dtime)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
// Limit a bit
if(dtime > 2.0)
// Limit a bit
if(dtime > 2.0)
@@
-824,7
+824,7
@@
void Client::initLocalMapSaving(const Address &address,
void Client::ReceiveAll()
{
void Client::ReceiveAll()
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
u32 start_ms = porting::getTimeMs();
for(;;)
{
u32 start_ms = porting::getTimeMs();
for(;;)
{
@@
-850,7
+850,7
@@
void Client::ReceiveAll()
void Client::Receive()
{
void Client::Receive()
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
NetworkPacket pkt;
m_con.Receive(&pkt);
ProcessData(&pkt);
NetworkPacket pkt;
m_con.Receive(&pkt);
ProcessData(&pkt);
@@
-867,7
+867,7
@@
inline void Client::handleCommand(NetworkPacket* pkt)
*/
void Client::ProcessData(NetworkPacket *pkt)
{
*/
void Client::ProcessData(NetworkPacket *pkt)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
ToClientCommand command = (ToClientCommand) pkt->getCommand();
u32 sender_peer_id = pkt->getPeerId();
ToClientCommand command = (ToClientCommand) pkt->getCommand();
u32 sender_peer_id = pkt->getPeerId();
@@
-1213,7
+1213,7
@@
void Client::sendChangePassword(const std::string &oldpassword,
void Client::sendDamage(u8 damage)
{
void Client::sendDamage(u8 damage)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8));
pkt << damage;
NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8));
pkt << damage;
@@
-1222,7
+1222,7
@@
void Client::sendDamage(u8 damage)
void Client::sendBreath(u16 breath)
{
void Client::sendBreath(u16 breath)
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_BREATH, sizeof(u16));
pkt << breath;
NetworkPacket pkt(TOSERVER_BREATH, sizeof(u16));
pkt << breath;
@@
-1231,7
+1231,7
@@
void Client::sendBreath(u16 breath)
void Client::sendRespawn()
{
void Client::sendRespawn()
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_RESPAWN, 0);
Send(&pkt);
NetworkPacket pkt(TOSERVER_RESPAWN, 0);
Send(&pkt);
@@
-1239,7
+1239,7
@@
void Client::sendRespawn()
void Client::sendReady()
{
void Client::sendReady()
{
- DSTACK(
__
FUNCTION_NAME);
+ DSTACK(FUNCTION_NAME);
NetworkPacket pkt(TOSERVER_CLIENT_READY,
1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));
NetworkPacket pkt(TOSERVER_CLIENT_READY,
1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));