comparison 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
comparison
equal deleted inserted replaced
414:d8b3056df4e2 417:55684f4eda73
14372 { 14372 {
14373 v5 = v4->uCurrentActionLength; 14373 v5 = v4->uCurrentActionLength;
14374 v4->uCurrentActionTime += pMiscTimer->uTimeElapsed; 14374 v4->uCurrentActionTime += pMiscTimer->uTimeElapsed;
14375 if ( (signed int)v4->uCurrentActionTime >= v5 ) 14375 if ( (signed int)v4->uCurrentActionTime >= v5 )
14376 { 14376 {
14377 v17 = dword_4F6E08[v20]; 14377 v17 = ai_near_actors_targets_pid[v20];
14378 v6 = Actor::GetDirectionInfo(8 * v20 | 3, v17, &a3, v2); 14378 v6 = Actor::GetDirectionInfo(8 * v20 | OBJECT_Actor, v17, &a3, v2);
14379 v7 = v4->uAIState; 14379 v7 = v4->uAIState;
14380 memcpy(&v15, v6, sizeof(v15)); 14380 memcpy(&v15, v6, sizeof(v15));
14381 v8 = v7 - 4; 14381 v8 = v7 - 4;
14382 memcpy(&v14, &v15, sizeof(v14)); 14382 memcpy(&v14, &v15, sizeof(v14));
14383 if ( v8 ) 14383 if ( v8 )