summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 15:29:52 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 15:29:52 +0100
commit2a1d75ab098a9d2b330c15212be958ac3d5e0f0e (patch)
tree40641f77785865aef273077bb725e9a24ad7fe53
parent - Linux compatible fixes including updated makefile (diff)
downloadcuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar.gz
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar.bz2
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar.lz
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar.xz
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.tar.zst
cuberite-2a1d75ab098a9d2b330c15212be958ac3d5e0f0e.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 1182e2e58..4e71c7169 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -415,15 +415,15 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
switch( a_Packet->m_PacketID )
{
case E_NEW_INVALID_STATE: // New/Invalid State packet received. I'm guessing the client only sends it when there's a problem with the bed?
- {
- LOGINFO("Got New Invalid State packet");
- }
- break;
+ {
+ LOGINFO("Got New Invalid State packet");
+ }
+ break;
case E_CREATE_INVENTORY_ACTION: // I don't think we need to do anything with this packet, but justin case...
- {
- LOGINFO("Got Create Inventory Action packet");
- }
- break;
+ {
+ LOGINFO("Got Create Inventory Action packet");
+ }
+ break;
case E_PING: // Somebody tries to retrieve information about the server
{
LOGINFO("Got ping");
@@ -441,7 +441,7 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
LOG("HANDSHAKE %s", GetUsername() );
cPacket_Chat Connecting(m_pState->Username + " is connecting.");
- if (cRoot::Get()->GetWorld()->GetNumPlayers() == cRoot::Get()->GetWorld()->GetMaxPlayers()) {
+ if (cRoot::Get()->GetWorld()->GetNumPlayers() >= cRoot::Get()->GetWorld()->GetMaxPlayers()) {
Kick("The server is currently full :( -- Try again later");
break;
}