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

Function AddL2Objs

Source/objects.cpp:392–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392void AddL2Objs(int x1, int y1, int x2, int y2)
393{
394 int i, j, pn;
395
396 for (j = y1; j < y2; j++) {
397 for (i = x1; i < x2; i++) {
398 pn = dPiece[i][j];
399 if (pn == 13 || pn == 541)
400 AddObject(OBJ_L2LDOOR, i, j);
401 if (pn == 17 || pn == 542)
402 AddObject(OBJ_L2RDOOR, i, j);
403 }
404 }
405}
406
407void AddL3Objs(int x1, int y1, int x2, int y2)
408{

Callers 3

InitObjectsFunction · 0.85
ObjChangeMapFunction · 0.85
LoadSetMapFunction · 0.85

Calls 1

AddObjectFunction · 0.85

Tested by

no test coverage detected