MCPcopy Create free account
hub / github.com/diasurgical/devilution / DrawDurIcon

Function DrawDurIcon

Source/control.cpp:1633–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1631}
1632
1633void 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
1650int DrawDurIcon4Item(ItemStruct *pItem, int x, int c)
1651{

Callers 1

DrawViewFunction · 0.85

Calls 1

DrawDurIcon4ItemFunction · 0.85

Tested by

no test coverage detected