mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Changed: Better checks
--HG-- branch : develop
This commit is contained in:
parent
0c2535c4a0
commit
b547861532
1 changed files with 2 additions and 6 deletions
|
@ -354,15 +354,11 @@ public:
|
|||
if ( entity.AssociationBitsSent == currentAssociationBits )
|
||||
{
|
||||
//nlassertex(entity.Used, ("client=%d, entity=%d property=%d", clientId, entityId, property));
|
||||
if (property == CLFECOMMON::PROPERTY_DISASSOCIATION)
|
||||
{
|
||||
// don't do anything
|
||||
}
|
||||
else if (property == CLFECOMMON::PROPERTY_POSITION)
|
||||
if (property == CLFECOMMON::PROPERTY_POSITION)
|
||||
{
|
||||
entity.Mileage = 0;
|
||||
}
|
||||
else
|
||||
else if (property != CLFECOMMON::PROPERTY_DISASSOCIATION)
|
||||
{
|
||||
CPropertyEntry &entry = entity.Properties[property];
|
||||
entry.HasValue = false;
|
||||
|
|
Loading…
Reference in a new issue