diff Indoor.cpp @ 322:ce39b96acf5c

Killing friendly peasants subs
author Nomad
date Wed, 20 Feb 2013 04:36:14 +0200
parents 922a96fdcc86
children d720a13e2273
line wrap: on
line diff
--- a/Indoor.cpp	Wed Feb 20 03:35:22 2013 +0200
+++ b/Indoor.cpp	Wed Feb 20 04:36:14 2013 +0200
@@ -4157,7 +4157,7 @@
                 v27 = abs(pActors[v54].vPosition.z - v0->vPosition.z);
                 v28 = abs(pActors[v26].vPosition.y - v0->vPosition.y);
                 v29 = abs(pActors[v26].vPosition.x - v0->vPosition.x);
-                if ( sub_4621DA(v29, v28, v27) >= v0->uActorRadius + (signed int)pActors[v26].uActorRadius
+                if ( int_get_vector_length(v29, v28, v27) >= v0->uActorRadius + (signed int)pActors[v26].uActorRadius
                   && _46DF1A_collide_against_actor(v54, 40) )
                   ++v58;
                 v22 = 0;