@@ -138,7 +138,8 @@ struct site:point,std::enable_shared_from_this<site>
}
void set_client(std::shared_ptr<client>& clt)
{
- m_clt = clt;
+ if(m_clt != clt)
+ m_clt = clt;
m_time=time(0);
@@ -33,8 +33,7 @@ void message_locinfo::load(zistream&is,bool tdoa)
if(m_card_type == 1 || m_card_type==4 || m_card_type==5)
m_acc=b;
else
- m_acc =b*0.01;
- //m_acc=((b&0x80)?-1.:1.)*(b&0x7f)*98;
+ m_acc=((b&0x80)?-1.:1.)*(b&0x7f)*0.01;
//TOF
is>>b>>i;