Mercurial > mm7
comparison Indoor.cpp @ 860:8fc2f035abc0
* AI function renames
* more PID replaces
author | zipi |
---|---|
date | Sun, 31 Mar 2013 12:39:29 +0100 |
parents | 8fafe3645f36 |
children | f4394e320312 |
comparison
equal
deleted
inserted
replaced
859:48c230c37d74 | 860:8fc2f035abc0 |
---|---|
3476 if ( !(door->uAttributes & 6) && door->uNumVertices != 0) | 3476 if ( !(door->uAttributes & 6) && door->uNumVertices != 0) |
3477 { | 3477 { |
3478 //v66 = 0; | 3478 //v66 = 0; |
3479 //v65 = 0; | 3479 //v65 = 0; |
3480 //v64 = 0; | 3480 //v64 = 0; |
3481 //v7 = 8 * i | OBJECT_BLVDoor; | 3481 //v7 = PID(i,OBJECT_BLVDoor); |
3482 //v63 = 0; | 3482 //v63 = 0; |
3483 //v62 = -1; | 3483 //v62 = -1; |
3484 //LOBYTE(v7) = 8 * i | OBJECT_BLVDoor; | 3484 //LOBYTE(v7) = PID(i,OBJECT_BLVDoor); |
3485 //v61 = 0; | 3485 //v61 = 0; |
3486 //v60 = 8 * i | OBJECT_BLVDoor; | 3486 //v60 = PID(i,OBJECT_BLVDoor); |
3487 //v59 = (SoundID)((int)eDoorSoundID + 1); | 3487 //v59 = (SoundID)((int)eDoorSoundID + 1); |
3488 //LABEL_17: | 3488 //LABEL_17: |
3489 pAudioPlayer->PlaySound((SoundID)((int)eDoorSoundID + 1), 8 * i | OBJECT_BLVDoor, 0, -1, 0, 0, 0, 0); | 3489 pAudioPlayer->PlaySound((SoundID)((int)eDoorSoundID + 1), PID(i,OBJECT_BLVDoor), 0, -1, 0, 0, 0, 0); |
3490 //goto LABEL_18; | 3490 //goto LABEL_18; |
3491 } | 3491 } |
3492 goto LABEL_18; | 3492 goto LABEL_18; |
3493 } | 3493 } |
3494 } | 3494 } |
3507 if ( !(door->uAttributes & 6) && door->uNumVertices) | 3507 if ( !(door->uAttributes & 6) && door->uNumVertices) |
3508 { | 3508 { |
3509 //v66 = 0; | 3509 //v66 = 0; |
3510 //v65 = 0; | 3510 //v65 = 0; |
3511 //v64 = 0; | 3511 //v64 = 0; |
3512 //v8 = 8 * i | OBJECT_BLVDoor; | 3512 //v8 = PID(i,OBJECT_BLVDoor); |
3513 //v63 = 0; | 3513 //v63 = 0; |
3514 //v62 = -1; | 3514 //v62 = -1; |
3515 //LOBYTE(v8) = 8 * v1 | 1; | 3515 //LOBYTE(v8) = 8 * v1 | 1; |
3516 //v61 = 1; | 3516 //v61 = 1; |
3517 //v60 = 8 * i | OBJECT_BLVDoor; | 3517 //v60 = PID(i,OBJECT_BLVDoor); |
3518 //v59 = eDoorSoundID; | 3518 //v59 = eDoorSoundID; |
3519 pAudioPlayer->PlaySound(eDoorSoundID, PID(i,OBJECT_BLVDoor), 1, -1, 0, 0, 0, 0); | 3519 pAudioPlayer->PlaySound(eDoorSoundID, PID(i,OBJECT_BLVDoor), 1, -1, 0, 0, 0, 0); |
3520 //goto LABEL_18; | 3520 //goto LABEL_18; |
3521 } | 3521 } |
3522 LABEL_18: | 3522 LABEL_18: |
4205 if ( v56 == v22 ) | 4205 if ( v56 == v22 ) |
4206 { | 4206 { |
4207 if ( !pActors[v37].pMonsterInfo.uHostilityType ) | 4207 if ( !pActors[v37].pMonsterInfo.uHostilityType ) |
4208 goto LABEL_118; | 4208 goto LABEL_118; |
4209 LABEL_114: | 4209 LABEL_114: |
4210 Actor::_402968(v63, v36, v22, (AIDirection *)v22); | 4210 Actor::Flee(v63, v36, v22, (AIDirection *)v22); |
4211 goto LABEL_119; | 4211 goto LABEL_119; |
4212 } | 4212 } |
4213 } | 4213 } |
4214 Actor::AI_StandOrBored(v63, 4, v22, &v53); | 4214 Actor::AI_StandOrBored(v63, 4, v22, &v53); |
4215 goto LABEL_119; | 4215 goto LABEL_119; |