comparison mm7_2.cpp @ 1280:89210052dbb4

bugfix PID_ID(v2->spell_caster_pid)==1000
author Gloval
date Sat, 15 Jun 2013 21:23:33 +0400
parents f11651288371
children d8033eb56d7e
comparison
equal deleted inserted replaced
1279:34c433886ed4 1280:89210052dbb4
9633 --pTurnEngine->field_1C; 9633 --pTurnEngine->field_1C;
9634 v2->uAttributes = v5 & 0xFFFB; 9634 v2->uAttributes = v5 & 0xFFFB;
9635 } 9635 }
9636 } 9636 }
9637 if ( v151 == OBJECT_BModel && PID_TYPE(v2->spell_caster_pid) != OBJECT_Player) 9637 if ( v151 == OBJECT_BModel && PID_TYPE(v2->spell_caster_pid) != OBJECT_Player)
9638 BYTE2(pActors[PID_ID(v2->spell_caster_pid)].uAttributes) |= 4u; 9638 {
9639 if (PID_ID(v2->spell_caster_pid)<500) //bugfix PID_ID(v2->spell_caster_pid)==1000
9640 BYTE2(pActors[PID_ID(v2->spell_caster_pid)].uAttributes) |= 4;
9641 }
9642
9639 v6 = v2->uType; 9643 v6 = v2->uType;
9640 v7 = v2->uType; 9644 v7 = v2->uType;
9641 if ( v7 > 3060 ) 9645 if ( v7 > 3060 )
9642 { 9646 {
9643 if ( v7 > 6090 ) 9647 if ( v7 > 6090 )