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

Function objects_set_door_piece

Source/objects.cpp:1829–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827}
1828
1829void objects_set_door_piece(int x, int y)
1830{
1831 int pn;
1832 long v1, v2;
1833
1834 pn = dPiece[x][y] - 1;
1835
1836 v1 = *((WORD *)pLevelPieces + 10 * pn + 8);
1837 v2 = *((WORD *)pLevelPieces + 10 * pn + 9);
1838 dpiece_defs_map_2[x][y].mt[0] = SDL_SwapLE16(v1);
1839 dpiece_defs_map_2[x][y].mt[1] = SDL_SwapLE16(v2);
1840}
1841
1842void ObjSetMini(int x, int y, int v)
1843{

Callers 3

OperateL1RDoorFunction · 0.85
OperateL1LDoorFunction · 0.85
SyncL1DoorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected