| 1631 | } |
| 1632 | |
| 1633 | void DrawDurIcon() |
| 1634 | { |
| 1635 | PlayerStruct *p; |
| 1636 | int x1, x2, x3, x4; |
| 1637 | |
| 1638 | if (!chrflag && !questlog || !invflag && !sbookflag) { |
| 1639 | x1 = 592 + PANEL_X; |
| 1640 | if (invflag || sbookflag) |
| 1641 | x1 = 272 + PANEL_X; |
| 1642 | p = &plr[myplr]; |
| 1643 | x2 = DrawDurIcon4Item(&p->InvBody[INVLOC_HEAD], x1, 4); |
| 1644 | x3 = DrawDurIcon4Item(&p->InvBody[INVLOC_CHEST], x2, 3); |
| 1645 | x4 = DrawDurIcon4Item(&p->InvBody[INVLOC_HAND_LEFT], x3, 0); |
| 1646 | DrawDurIcon4Item(&p->InvBody[INVLOC_HAND_RIGHT], x4, 0); |
| 1647 | } |
| 1648 | } |
| 1649 | |
| 1650 | int DrawDurIcon4Item(ItemStruct *pItem, int x, int c) |
| 1651 | { |
no test coverage detected