comparison Party.cpp @ 322:ce39b96acf5c

Killing friendly peasants subs
author Nomad
date Wed, 20 Feb 2013 04:36:14 +0200
parents 15decc249a94
children 5f36449527c6
comparison
equal deleted inserted replaced
321:15decc249a94 322:ce39b96acf5c
803 if ( v0->Actor::CanAct() && v0->pMonsterInfo.uHostilityType != 4 && v0->pMonsterInfo.uMovementType != 5 ) 803 if ( v0->Actor::CanAct() && v0->pMonsterInfo.uHostilityType != 4 && v0->pMonsterInfo.uMovementType != 5 )
804 { 804 {
805 v1 = abs(v0->vPosition.x - pParty->vPosition.x); 805 v1 = abs(v0->vPosition.x - pParty->vPosition.x);
806 v2 = abs(v0->vPosition.y - pParty->vPosition.y); 806 v2 = abs(v0->vPosition.y - pParty->vPosition.y);
807 v3 = abs(v0->vPosition.z - pParty->vPosition.z); 807 v3 = abs(v0->vPosition.z - pParty->vPosition.z);
808 if ( (double)sub_4621DA(v1, v2, v3) < 512.0 ) 808 if (int_get_vector_length(v1, v2, v3) < 512)
809 Actor::_402968(v4, 4, 0, 0); 809 Actor::_402968(v4, 4, 0, 0);
810 } 810 }
811 ++v4; 811 ++v4;
812 ++v0; 812 ++v0;
813 } 813 }