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

Function ObjSetMini

Source/objects.cpp:1842–1860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1840}
1841
1842void ObjSetMini(int x, int y, int v)
1843{
1844 int xx, yy;
1845 long v1, v2, v3, v4;
1846 WORD *MegaTiles;
1847
1848 MegaTiles = (WORD *)&pMegaTiles[((WORD)v - 1) * 8];
1849 v1 = SDL_SwapLE16(*(MegaTiles + 0)) + 1;
1850 v2 = SDL_SwapLE16(*(MegaTiles + 1)) + 1;
1851 v3 = SDL_SwapLE16(*(MegaTiles + 2)) + 1;
1852 v4 = SDL_SwapLE16(*(MegaTiles + 3)) + 1;
1853
1854 xx = 2 * x + 16;
1855 yy = 2 * y + 16;
1856 ObjSetMicro(xx, yy, v1);
1857 ObjSetMicro(xx + 1, yy, v2);
1858 ObjSetMicro(xx, yy + 1, v3);
1859 ObjSetMicro(xx + 1, yy + 1, v4);
1860}
1861
1862void ObjL1Special(int x1, int y1, int x2, int y2)
1863{

Callers 2

ObjChangeMapFunction · 0.85
ObjChangeMapResyncFunction · 0.85

Calls 1

ObjSetMicroFunction · 0.85

Tested by

no test coverage detected