[hellfire] PlayerMHit
This commit is contained in:
parent
167ce2a3d5
commit
74849d48bd
3 changed files with 75 additions and 13 deletions
|
|
@ -4962,8 +4962,14 @@ void BreakBarrel(int pnum, int i, int dam, BOOL forcebreak, BOOL sendmsg)
|
|||
for (xp = object[i]._ox - 1; xp <= object[i]._ox + 1; xp++) {
|
||||
if (dMonster[xp][yp] > 0)
|
||||
MonsterTrapHit(dMonster[xp][yp] - 1, 1, 4, 0, MIS_FIREBOLT, FALSE);
|
||||
#ifdef HELLFIRE
|
||||
BOOLEAN unused;
|
||||
if (dPlayer[xp][yp] > 0)
|
||||
PlayerMHit(dPlayer[xp][yp] - 1, -1, 0, 8, 16, MIS_FIREBOLT, FALSE, 0, &unused);
|
||||
#else
|
||||
if (dPlayer[xp][yp] > 0)
|
||||
PlayerMHit(dPlayer[xp][yp] - 1, -1, 0, 8, 16, MIS_FIREBOLT, FALSE, 0);
|
||||
#endif
|
||||
if (dObject[xp][yp] > 0) {
|
||||
oi = dObject[xp][yp] - 1;
|
||||
if (object[oi]._otype == OBJ_BARRELEX && object[oi]._oBreak != -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue