comparison mm7_3.cpp @ 414:d8b3056df4e2

AI_Bored
author Nomad
date Sat, 23 Feb 2013 17:15:36 +0200
parents 111f25d1cc04
children 55684f4eda73 88c30918eef7
comparison
equal deleted inserted replaced
413:111f25d1cc04 414:d8b3056df4e2
1227 if ( v0->pMonsterInfo.uHostilityType ) 1227 if ( v0->pMonsterInfo.uHostilityType )
1228 { 1228 {
1229 if ( v71 == v34 ) 1229 if ( v71 == v34 )
1230 goto LABEL_99; 1230 goto LABEL_99;
1231 LABEL_101: 1231 LABEL_101:
1232 Actor::_403F58(v75, 4, v34, (AIDirection *)v34); 1232 Actor::AI_StandOrBored(v75, 4, v34, (AIDirection *)v34);
1233 break; 1233 break;
1234 } 1234 }
1235 if ( v71 != v34 ) 1235 if ( v71 != v34 )
1236 goto LABEL_101; 1236 goto LABEL_101;
1237 if ( pActors[v39].pMonsterInfo.uHostilityType ) 1237 if ( pActors[v39].pMonsterInfo.uHostilityType )
17909 actor->uAIState = Dead; 17909 actor->uAIState = Dead;
17910 else 17910 else
17911 { 17911 {
17912 if (actor->uAIState != Summoned) 17912 if (actor->uAIState != Summoned)
17913 { 17913 {
17914 Actor::_403F58(i, OBJECT_Player, 256, nullptr); 17914 Actor::AI_StandOrBored(i, OBJECT_Player, 256, nullptr);
17915 continue; 17915 continue;
17916 } 17916 }
17917 actor->uAIState = Standing; 17917 actor->uAIState = Standing;
17918 } 17918 }
17919 17919
18700 LOBYTE(v7) = v7 | 0x80; 18700 LOBYTE(v7) = v7 | 0x80;
18701 v6->uAttributes = v7; 18701 v6->uAttributes = v7;
18702 v33 = 8 * v5 | OBJECT_Actor; 18702 v33 = 8 * v5 | OBJECT_Actor;
18703 memcpy(&v31, Actor::GetDirectionInfo(8 * v5 | OBJECT_Actor, v8, &a3, 0), sizeof(v31)); 18703 memcpy(&v31, Actor::GetDirectionInfo(8 * v5 | OBJECT_Actor, v8, &a3, 0), sizeof(v31));
18704 memcpy(&v30, &v31, sizeof(v30)); 18704 memcpy(&v30, &v31, sizeof(v30));
18705 Actor::_403F58(v37, 4, 32, &v30); 18705 Actor::AI_StandOrBored(v37, 4, 32, &v30);
18706 *(&v1->field_0 + 4 * (v1->uActorQueueSize + 2)) = v33; 18706 *(&v1->field_0 + 4 * (v1->uActorQueueSize + 2)) = v33;
18707 v1->pQueue[v1->uActorQueueSize].field_C = 2; 18707 v1->pQueue[v1->uActorQueueSize].field_C = 2;
18708 v1->pQueue[v1->uActorQueueSize++].uActionLength = 0; 18708 v1->pQueue[v1->uActorQueueSize++].uActionLength = 0;
18709 } 18709 }
18710 } 18710 }