summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-09 09:25:09 +0200
committerMattes D <github@xoft.cz>2015-05-09 12:58:54 +0200
commitc13b1931ff26a5643c9fe68ab32b1e362cfacd70 (patch)
tree0c19db714a5dd08eb2775b39487e96cf317cf867 /src/Entities/Entity.cpp
parentRabbit and cooked rabbit now stackable (diff)
downloadcuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.gz
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.bz2
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.lz
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.xz
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.tar.zst
cuberite-c13b1931ff26a5643c9fe68ab32b1e362cfacd70.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index b87cf51a6..4a909a1fd 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1309,7 +1309,8 @@ bool cEntity::DetectPortal()
if (IsPlayer())
{
- ((cPlayer *)this)->GetClientHandle()->SendRespawn(dimOverworld); // Send a respawn packet before world is loaded/generated so the client isn't left in limbo
+ // Send a respawn packet before world is loaded / generated so the client isn't left in limbo
+ ((cPlayer *)this)->GetClientHandle()->SendRespawn(dimOverworld);
}
return MoveToWorld(cRoot::Get()->CreateAndInitializeWorld(GetWorld()->GetLinkedOverworldName()), false);
@@ -1688,8 +1689,8 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
{
m_World->BroadcastEntityRelMove(*this, (char)DiffX, (char)DiffY, (char)DiffZ, a_Exclude);
}
- // Clients seem to store two positions, one for the velocity packet and one for the teleport/relmove packet
- // The latter is only changed with a relmove/teleport, and m_LastPos stores this position
+ // Clients seem to store two positions, one for the velocity packet and one for the teleport / relmove packet
+ // The latter is only changed with a relmove / teleport, and m_LastPos stores this position
m_LastPos = GetPosition();
}
else