comparison mm7_3.cpp @ 849:8fafe3645f36

* PID replaces * Actor::GetDirectionInfo cleaning
author zipi
date Sun, 31 Mar 2013 11:46:28 +0100
parents ceef50611567
children e4bd2a0bf08b
comparison
equal deleted inserted replaced
848:ceef50611567 849:8fafe3645f36
6222 } 6222 }
6223 while ( !v44 ); 6223 while ( !v44 );
6224 uFaceID = v65; 6224 uFaceID = v65;
6225 } 6225 }
6226 v56 = 8 * uFaceID; 6226 v56 = 8 * uFaceID;
6227 LOBYTE(v56) = 8 * uFaceID | 6; 6227 LOBYTE(v56) = PID(uFaceID,OBJECT_BModel);
6228 v57 = v56; 6228 v57 = v56;
6229 v58 = pFace->GetTexture(); 6229 v58 = pFace->GetTexture();
6230 pRenderer->DrawIndoorPolygon(v3, pFace, pBitmaps_LOD->pHardwareTextures[pFace->uBitmapID], v58, v57, -1, 0); 6230 pRenderer->DrawIndoorPolygon(v3, pFace, pBitmaps_LOD->pHardwareTextures[pFace->uBitmapID], v58, v57, -1, 0);
6231 return; 6231 return;
6232 } 6232 }
14968 v19 = 0; 14968 v19 = 0;
14969 for ( i = 0; v18 < v45; i = v18 ) 14969 for ( i = 0; v18 < v45; i = v18 )
14970 { 14970 {
14971 v20 = &pActors[ai_near_actors_ids[v18]]; 14971 v20 = &pActors[ai_near_actors_ids[v18]];
14972 if ( v20->uAttributes & 0x8000 14972 if ( v20->uAttributes & 0x8000
14973 || (v21 = sub_4070EF_prolly_collide_objects(8 * ai_near_actors_ids[v18] | 3, 4u), v18 = i, v21) ) 14973 || (v21 = sub_4070EF_prolly_collide_objects(PID(ai_near_actors_ids[v18],OBJECT_Actor), 4u), v18 = i, v21) )
14974 { 14974 {
14975 v22 = ai_near_actors_ids[v18]; 14975 v22 = ai_near_actors_ids[v18];
14976 v20->uAttributes |= 0x8000u; 14976 v20->uAttributes |= 0x8000u;
14977 ai_array_4F6638_actor_ids[v19] = v22; 14977 ai_array_4F6638_actor_ids[v19] = v22;
14978 ai_array_4F5E68[v19++] = ai_near_actors_distances[v18]; 14978 ai_array_4F5E68[v19++] = ai_near_actors_distances[v18];