mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-04 17:24:47 +00:00
Changed: Better checks
This commit is contained in:
parent
220c3370e5
commit
4ba63dba14
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue