diff Party.cpp @ 322:ce39b96acf5c

Killing friendly peasants subs
author Nomad
date Wed, 20 Feb 2013 04:36:14 +0200
parents 15decc249a94
children 5f36449527c6
line wrap: on
line diff
--- a/Party.cpp	Wed Feb 20 03:35:22 2013 +0200
+++ b/Party.cpp	Wed Feb 20 04:36:14 2013 +0200
@@ -805,7 +805,7 @@
 		  v1 = abs(v0->vPosition.x - pParty->vPosition.x);
 		  v2 = abs(v0->vPosition.y - pParty->vPosition.y);
 		  v3 = abs(v0->vPosition.z - pParty->vPosition.z);
-          if ( (double)sub_4621DA(v1, v2, v3) < 512.0 )
+          if (int_get_vector_length(v1, v2, v3) < 512)
             Actor::_402968(v4, 4, 0, 0);
         }
         ++v4;