diff mm7_4.cpp @ 417:55684f4eda73

Actor::SelectTarget & ai_near_actors_targets_pid
author Nomad
date Sat, 23 Feb 2013 19:31:56 +0200
parents d8b3056df4e2
children ad1e9c0bf6da ee47cc585e1b
line wrap: on
line diff
--- a/mm7_4.cpp	Sat Feb 23 17:15:36 2013 +0200
+++ b/mm7_4.cpp	Sat Feb 23 19:31:56 2013 +0200
@@ -14374,8 +14374,8 @@
             v4->uCurrentActionTime += pMiscTimer->uTimeElapsed;
             if ( (signed int)v4->uCurrentActionTime >= v5 )
             {
-              v17 = dword_4F6E08[v20];
-              v6 = Actor::GetDirectionInfo(8 * v20 | 3, v17, &a3, v2);
+              v17 = ai_near_actors_targets_pid[v20];
+              v6 = Actor::GetDirectionInfo(8 * v20 | OBJECT_Actor, v17, &a3, v2);
               v7 = v4->uAIState;
               memcpy(&v15, v6, sizeof(v15));
               v8 = v7 - 4;