aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ServerPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/ServerPlayer.cpp')
-rw-r--r--Minecraft.Client/ServerPlayer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/ServerPlayer.cpp b/Minecraft.Client/ServerPlayer.cpp
index 76332358..789b3176 100644
--- a/Minecraft.Client/ServerPlayer.cpp
+++ b/Minecraft.Client/ServerPlayer.cpp
@@ -395,9 +395,9 @@ void ServerPlayer::doChunkSendingTick(bool dontDelayChunks)
okToSend = true;
MinecraftServer::chunkPacketManagement_DidSendTo(connection->getNetworkPlayer());
-// static unordered_map<wstring,__int64> mapLastTime;
-// __int64 thisTime = System::currentTimeMillis();
-// __int64 lastTime = mapLastTime[connection->getNetworkPlayer()->GetUID().toString()];
+// static unordered_map<wstring,int64_t> mapLastTime;
+// int64_t thisTime = System::currentTimeMillis();
+// int64_t lastTime = mapLastTime[connection->getNetworkPlayer()->GetUID().toString()];
// app.DebugPrintf(" - OK to send (%d ms since last)\n", thisTime - lastTime);
// mapLastTime[connection->getNetworkPlayer()->GetUID().toString()] = thisTime;
}
@@ -428,9 +428,9 @@ void ServerPlayer::doChunkSendingTick(bool dontDelayChunks)
{
// app.DebugPrintf("Creating BRUP for %d %d\n",nearest.x, nearest.z);
PIXBeginNamedEvent(0,"Creation BRUP for sending\n");
- __int64 before = System::currentTimeMillis();
+ int64_t before = System::currentTimeMillis();
shared_ptr<BlockRegionUpdatePacket> packet = shared_ptr<BlockRegionUpdatePacket>( new BlockRegionUpdatePacket(nearest.x * 16, 0, nearest.z * 16, 16, Level::maxBuildHeight, 16, level) );
- __int64 after = System::currentTimeMillis();
+ int64_t after = System::currentTimeMillis();
// app.DebugPrintf(">>><<< %d ms\n",after-before);
PIXEndNamedEvent();
if( dontDelayChunks ) packet->shouldDelay = false;