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

Function AddL2Objs

Source/objects.cpp:3863–3874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3861}
3862
3863void AddL2Objs(int x1, int y1, int x2, int y2)
3864{
3865 for (int j = y1; j < y2; j++) {
3866 for (int i = x1; i < x2; i++) {
3867 int pn = dPiece[i][j];
3868 if (pn == 12 || pn == 540)
3869 AddObject(OBJ_L2LDOOR, { i, j });
3870 if (pn == 16 || pn == 541)
3871 AddObject(OBJ_L2RDOOR, { i, j });
3872 }
3873 }
3874}
3875
3876void AddL3Objs(int x1, int y1, int x2, int y2)
3877{

Callers 3

InitObjectsFunction · 0.85
ObjChangeMapFunction · 0.85
LoadL2DungeonFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected