Changed: Better checks

This commit is contained in:
kervala 2016-06-11 20:49:28 +02:00
parent 8c2dade6c4
commit 9960aab6a1

View file

@ -354,15 +354,11 @@ public:
if ( entity.AssociationBitsSent == currentAssociationBits ) if ( entity.AssociationBitsSent == currentAssociationBits )
{ {
//nlassertex(entity.Used, ("client=%d, entity=%d property=%d", clientId, entityId, property)); //nlassertex(entity.Used, ("client=%d, entity=%d property=%d", clientId, entityId, property));
if (property == CLFECOMMON::PROPERTY_DISASSOCIATION) if (property == CLFECOMMON::PROPERTY_POSITION)
{
// don't do anything
}
else if (property == CLFECOMMON::PROPERTY_POSITION)
{ {
entity.Mileage = 0; entity.Mileage = 0;
} }
else else if (property != CLFECOMMON::PROPERTY_DISASSOCIATION)
{ {
CPropertyEntry &entry = entity.Properties[property]; CPropertyEntry &entry = entity.Properties[property];
entry.HasValue = false; entry.HasValue = false;