MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / ItemDoppel

Function ItemDoppel

Source/items.cpp:1683–1701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681}
1682
1683void ItemDoppel()
1684{
1685 if (!gbIsMultiplayer)
1686 return;
1687
1688 static int idoppely = 16;
1689
1690 for (int idoppelx = 16; idoppelx < 96; idoppelx++) {
1691 if (dItem[idoppelx][idoppely] != 0) {
1692 Item *i = &Items[dItem[idoppelx][idoppely] - 1];
1693 if (i->position.x != idoppelx || i->position.y != idoppely)
1694 dItem[idoppelx][idoppely] = 0;
1695 }
1696 }
1697
1698 idoppely++;
1699 if (idoppely == 96)
1700 idoppely = 16;
1701}
1702
1703void PrintItemOil(char iDidx)
1704{

Callers 1

ProcessItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected