Skip to content

Commit

Permalink
addBasePosToStream 如果配置中不更新坐标则应该关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
kbengine committed Aug 4, 2014
1 parent ce6351b commit ec12569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kbe/src/server/cellapp/witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,11 @@ bool Witness::update()
//-------------------------------------------------------------------------------------
void Witness::addBasePosToStream(Mercury::Bundle* pSendBundle)
{
const Position3D& bpos = getBasePos();
const VolatileInfo& volatileInfo = pEntity_->getScriptModule()->getVolatileInfo();
if((volatileInfo.position() <= 0.0004f))
return;

const Position3D& bpos = getBasePos();
Vector3 movement = bpos - lastBasePos;

if(KBEVec3Length(&movement) < 0.0004f)
Expand Down

0 comments on commit ec12569

Please sign in to comment.